Tracking Users to certain areas of your site by Creating Google Analytics Events on the fly just by pasting code

  1. This scripts assumes you are using gtag.js google analytics script.

Detailed Video How to use these to lines of code in your Chrome Browser:

Next Steps

  1. Select the area you wish to track.It may be a div, a text, a link, an image (example: social media icon). selector app
In this case I named the event “Click”, 
Event Category “Social Media — Instagram”,
Event_label “instagram Icon Is Clicked”
Dont forget inside
jQuery("to place here the selector of ig icon inside dblquotes")
‘event’, ‘Click’, {
‘event_category’: ‘Social Media - Instagram’,
‘event_label’: ‘Instagram Icon Is Clicked’,

4. Check results by clicking on instagram link and noticing an event firing live in google analytics Events Section. (Video below)




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Beginner’s Guide to Ngrx/store

How to handle Event RSVP in ActiveCampaign

Building a React App as a Single HTML file with Create React App (no eject)

New: Versioned Expo CLI

Make NTFS writable again (on OSX)

Suggestive Search w/ Firebase Cloud Functions, Firestore, ElasticSearch + Angular 8

Partials in Handlebars Express.js and using a Middleware

How to setup Webpack and Babel for React

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Irvis Pano

Irvis Pano

More from Medium

Setup Google Analytics in Remix

Reducing ECommerce Footprint with Digital: Top 3 Ways!

360 E-commerce Report

Ecommerce returns management: 5 tips to improve reverse logistics