Data Layer Click Events in GA4

On Click Data Layer Push Examples

These are the examples from the video:

<a href=”#” class=”button” onclick=”dataLayer.push({‘event’ : ‘click’,’clickType’ : ‘Menu Link’, ‘clickName’ : ‘Menu’, ‘clickCampaign’ : ‘none’});” target=””_blank”” rel=”noopener noreferrer”> Menu Button </a>

<a href=”#” class=”button” onclick=”dataLayer.push({‘event’ : ‘click’,’clickType’ : ‘Content Link’, ‘clickName’ : ‘Blog’, ‘clickCampaign’ : ‘blog’});” target=””_blank”” rel=”noopener noreferrer”> Blog Button </a>

<a href=”#” class=”button” onclick=”dataLayer.push({‘event’ : ‘click’,’clickType’ : ‘Content Link’, ‘clickName’ : ‘Affiliate link’, ‘clickCampaign’ : ‘affiliate’});” target=””_blank”” rel=”noopener noreferrer”> Affiliate Button </a></center>

Ready to grow your business online?

Contact us to get more clicks, leads and customers