- This topic has 1 reply, 2 voices, and was last updated 6 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › All Other Themes › Google Analytics Event Code
I am using the Cut N Style Pro theme.
Trying to setup analytics to track the number of times the Book Appointment button in the header is clicked.
The proper code for my event should be
a href=”https://app.salonrunner.com/customer/login.htm?id=16652” onClick=”ga(‘send’, ‘event’, ‘Schedule’, ’Click’, ‘Book Appointment’);”>Book Appointment</a
When I paste the code into the Header Top Info box and click save it deletes analytics code
onClick=”ga(‘send’, ‘event’, ‘Schedule’, ’Click’, ‘Book Appointment’)
And only saves:
a href=”https://app.salonrunner.com/customer/login.htm?id=16652″>Book Appointment</a
I’ve successfully installed the similar code on other sites without this issue.
I’m incredibly confused and wondering if there is anything in the theme overwriting analytics.
Thanks.
Hi Krystin,
HTML code won’t work in the header top info box. You have to go to header.php and change the anchor code from there for Book Appointment button.
Regards,
Dave
When it comes to websites, most often fail to gain much attention on account of their lousy design or the fact that they are loaded […]
If you are an interior designer or an artist, then you would definitely need a website and preferably one that’s built using WordPress, given the […]
One of the hazards of setting up a website and marketing online is in making sure that you have picked out the right theme for […]