add a eventlistener for gtag event tracking to a wordpress page

You are adding a jQuery click event inside a FreeDownloadEventTracking event, which I presume doesn’t exist.

The page would need to trigger FreeDownloadEventTracking for your click event to be added to the download link.

I would suggest replacing FreeDownloadEventTracking with DOMContentLoaded so your click event is added to a when the DOM is loaded. Then clicking the free download link will trigger gtag

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top