New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can anyone explain the event tacing Javascript #375

Open
edwardt12 opened this Issue Nov 28, 2018 · 1 comment

Comments

Projects
None yet
1 participant
@edwardt12

edwardt12 commented Nov 28, 2018

I cant fond any explanations.
I want to track specific events using JavaScript probably.
e.g. when a user clicks my button to see discounts I want to trap an event called discounts.
What JavaScript is needed? Where do I put that JavaScript?
All I can see is a general JavaScript file like GA that captures every click
I see reference to custom events and even code snippets, but it doesn't tell me how or where this code would be deployed
Thanks in advance.

@edwardt12

This comment has been minimized.

edwardt12 commented Nov 29, 2018

What I have found is:
OWATracker.trackAction('Cooking', 'Recipe Print', 'Best Chicken Parmesan Recipe', 10);
This I believe is close to what I need. The action name is 'Recipe Print'
In my case it could be:
OWATracker.trackAction('deciding', 'Compare discounts', 'etc', 10);

What I dont understand is:
where will this line of Javascript be placed:
How will it know that my user is clicking the "Discounts button"?
Do I need to use a specific dom naming method?
Do need to attach and event to the button I am tracking?
Anyone?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment