Site logo

Archived topic

Does Javascript work in header elements?

5 replies · Started by Benjamin on April 15, 2020

Viewing posts 1–6 of 6

Hi,

I created a header element with a link. And I set up a Javascript goal so my analytics software (Clicky) records clicks.

But the goal doesn't seem to get triggered.

So my question is: do I need to do anything special for javascript to be running insider a header element?

This is the code I put in the header element:

<p>This lesson is brought to you by <a onclick="clicky.goal('31428');" href="https://frenchtogether.com/course/">French Together</a>, the course that teaches you the 20% of French you need to know to understand 80% of everyday conversations and speak with confidence.</p>

Thanks

Hi there,

can you provide a link to the site where we can see this code ?

Hi there,

Yes, javascript will work in Header Elements.

I'm not familiar with clicky. Does it work even when the link immediately takes you to another page?

Hi Tom,

Yes, it should. But actually it seems to work now. Maybe it just needed some time for the data to start appearing.

Great to hear :)

This archived topic is closed to new replies.