- This topic has 1 reply, 2 voices, and was last updated 4 years, 3 months ago by .
- You must be logged in to reply to this topic.
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.
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.
A WordPress developer is a professional whose work revolves around basic coding and infrastructure of WordPress. They work consistently either to create new products or […]
In today’s modern world, all businesses need a website. If a company does not have a professional website or any other online presence, it would […]
Top 3 CMS comparison of the world WordPress vs Joomla vs Drupal Costs and Expense Comparison for the Best CMS: While opting for a CMS […]