Hello! We are trying to ensure that clicks to the header logo on Page builder pages is getting mapped to the “clicks to website” metric in Analytics. We added a Conversion Action to track this and added that conversion ID into the Header HTML, which is working. However, there are only 4 clicks to website being captured in Analytics and hundreds of Conversions - are we missing a step here to ensure that is also getting mapped to the “clicks to website” metric in Analytics? Or is there some other way to accomplish this? Thanks!
Hi Kate,
We’re looking into this for you and we’ll circle back hopefully with a solution next week.
Best,
Alyssa
@Kate_Burkett Hey happy to help!
When you say:
We added a Conversion Action to track this and added that conversion ID into the Header HTML, which is working.
Did you add that to track Conversions when someone clicked that button or to track clicks of that button?
The former is a valid use of a Conversion Tag to track a conversion for clicking a certain button however in the latter case you wouldn’t use a Conversion Tag to track clicks themselves as conversions require at least one other click on a Yext product to register in our system.
Mike
Hi Mike, thanks for your help!
In this case I am trying to track just the click to the button - completely understand what you are saying about not using the conversion action to track this, that makes sense. Do you have any other ideas or insights on how I would be able to map clicks to the header logo as “clicks to website” in analytics?
Thanks!
Kate
Hey Kate!
It looks like there is a subtle issue with the custom header on this page.
Currently, the html for the logo on the page is as follows:
<a id="site-logo" href="https://www.cfsc.com/" data-pages-analytics="clicktowebsite">. <img src="//dynl.mktgcdn.com/p/Fbu4QZOjsxDuxVdiUhToN9boE3j0QK4F_QnwndfZ5lw/1200x1.png" alt="">. </a>
In order to mark the analytics event as a “click to website”, you will need to add a data-pages-analytics
class to the <img>
element rather than the outer <a>
element.
When the user clicks on the logo, they are technically clicking on the <img>
and because this element doesn’t have a data-page-analytics
set, the system automatically classifies the event as “call to action.” To fix this, you will need to explicitly set the event as “Click to website” on the <img>
element.
Let me know if you have any questions!