Capturing measurements in Google Analytics

Search for a command to run...

No comments yet. Be the first to comment.
What you need to know
Is My Site Being Found or Referenced in ChatGPT?
Google offers a suite of powerful tools that, while distinct in their primary functions, often overlap in the metrics and dimensions they collect or can be integrated to provide a more holistic view of your digital presence. The specific metrics and ...
A must-read from a16z that sheds light on the evolving landscape of digital marketing. In the age of ChatGPT, Perplexity, and Claude, Generative Engine Optimization (GEO) is positioned to become the new playbook for brand visibility, signalling that ...
Are you a Shopify store owner or marketing professional struggling with fragmented data and missed attribution? It's time to unlock the full power of your marketing efforts with a truly robust and future-proof tracking solution! I am offering a com...
Before you can send data to Google Analytics, you have to add the analytics.js library and the default tracking snippet to your page.
The analytics.js tracking snippet does four main things:
<script> element that downloads the analytics.js JavaScript library.ga() function (called the ga() command queue) that allows you to schedule commands to be run once the analytics.js library is loaded and ready to go.ga() command queue to create a new tracker object for the property specified via the'UA-XXXXX-Y' parameter.ga() command queue to send a pageview to Google Analytics for the current page.While the data collected from pageviews alone is useful, it doesn't tell the whole story. To get a better picture of how users are experiencing your site or application, you have to send additional interaction data to Google Analytics.
Google Analytics supports several types of interaction data: pageviews, events, social interactions, exceptions, and (last but not least) user timings. To send user timing data to Google Analytics, you can use the following command signature:
ga('send', 'timing', timingCategory, timingVar, timingValue);
Where timingCategory is a string that allows you to organize timing hits into logical group, timingVar is the variable you're measuring, and timingValue is the actual time duration in milliseconds.
To get to the User Timing reports in Google Analytics, click on the Reporting tab at the top and select "Behavior > Site Speed > User Timings" from the sidebar navigation (or follow the instructions to view the User Timings report from the Help Center).
When you load User Timings report in Google Analytics, you should be able to see the timing categories that correspond to the data you sent. Click on any of those to see detailed visualizations of your timing data. The follow image is an example of font load times on a real website using Google Fonts over the last 24 hours.

If you need help to
User Timings APIContact me at https://www.linkedin.com/in/ssyap