Google Event Tracking

Posted On June 19, 2018

Kodewulf

Web developer and code junkie. Dabbling in just about anything that interests me.

Google gtag.js event code

To be included in HEAD, replacing #### with UA identifier



jQuery to track ‘Click to call’ and ‘Click to email’ links

Include this code in HEAD or before BODY close.

jQuery to track contact form submission

Include this code in HEAD or before BODY

More adventures

Javascript sticky header magic

Some sticky header magic.  If a sticky header overlaps some content at the top of the page, this will move page content down a bit.

Share This

Share this post with your friends!