Set up Analytics on AMP Page, Explains Improving Analytics Events with Unique Events

Unique Events improves upon events in Google Analytics and will help make your measurement better.

Share online:

In addition to making your page load faster, Accelerated Mobile Pages (AMP) provides multiple analytics options without compromising on performance.

Solutions including "amp-pixel" that behaves like a simple tracking pixel uses a single URL that allows variable substitutions.

On the other hand, "amp-analytics" component recognizes many types of event triggers to help you collect specific metrics. Additonally, you can use amp-analytics to configure multiple endpoints and data sets, since it's supported by multiple analytics providers.

AMP then manages all of the instrumentation to come up with the data specified and shares it with these analytics solution providers.

Even by using amp-experiment element, you can conduct a user experience experiment such as an A/B test, which will then be exposed to amp-analytics and amp-pixel for a statistical analysis.

You can see more on amp-pixel here, and amp-experiment element here.

In other new, Google explains how to improve Google Analytics Events with Unique Events. the post explains "Unique Events" metric counts the number of events with distinct Event attributes (Event Category, Action, and Label) that occur within a single user session.

"These events can be tracked independently from a web page or a screen load, giving you greater insight into actions taken within or across pages/screens," explained google. "Downloads, mobile ad clicks, gadgets, Flash elements, AJAX embedded elements, and video plays are all examples of interactions you might want to track as Unique Events."

The metric Total Events will count each event regardless of the uniqueness of the category/action/labels therein.

Here are some benefits of Unique Events:

  • Understanding how many users start/complete some action on your website Understanding the most popular media types/content consumed on your website
  • Having an understanding of how many users repeat actions that should only occur once, explained google.

You can learn more in the Help Center article here.

Improving Google analytics Events with Unique Events

In cloud news, With a new direct integration between Particle, an IoT cloud platform and hardware provider, and Google Cloud Platform (GCP), you can now easily bring the data to big data tools such as Google Cloud Dataflow, batch and streaming big data processing service; Google BigQuery, a managed data analytics warehouse and others.

To get started, check out the tutorial on the Particle website and connect device data directly to your GCP project today.

Additionally, Google Cloud Platform offers high-performance, fully-managed MySQL instances in the form of Google Cloud SQL Second Generation to help handle your mobile game's persistent storage.

For more information about Cloud SQL Second Generation, have a look at the documentation here.

With Google Cardboard and Daydream, Google in an effort to bring virtual reality to everyone recently launched "Google VR SDK" out of beta, with native integration for Unity and UE4, and now to further support, they've partnered with Udacity to create the VR Developer Nanodegree.

Students will learn how to create 3D environments, define behaviors, and make VR experiences comfortable, immersive, and performant, visit here.

Finally, helping developers, "CSP Evaluator", a tool to visualize the effect of setting a policy and detect subtle misconfigurations is released today.

"CSP Evaluator is used by security engineers and developers at Google to make sure policies provide a meaningful security benefit and cannot be subverted by attackers," explains google.

Those new, "Content Security Policy (CSP) is a mechanism designed to step in precisely when such bugs happen; it provides developers the ability to restrict which scripts are allowed to execute so that even if attackers can inject HTML into a vulnerable page, they should not be able to load malicious scripts and other types of resources.

CSP is a flexible tool allowing developers to set a wide range of policies; it is supported — though not always in its entirety — by all modern browsers."

Further, also release today is "CSP Mitigator", a Chrome extension that helps developers review an application for compatibility with nonce-based CSP.

"The extension can be enabled for any URL prefix and will collect data about any programming patterns that need to be refactored to support CSP. This includes identifying scripts which do not have the correct nonce attribute, detecting inline event handlers, javascript: URIs, and several other more subtle patterns which might need attention," google explained.

Finally, CSP adoption efforts today included in the scope of the Patch Reward Program, a proactive work to help make popular open-source web frameworks compatible with nonce-based CSP can qualify for rewards.

Check out CSP Evaluator here, CSP Mitifator here, and Patch reward program here.

Google is currently experimenting a new structured markup "Science datasets", which are "specialized repositories for datasets in many scientific domains: life sciences, earth sciences, material sciences, and more," Google said, added, "Many governments maintain repositories of civic and government data," which can be used for this as well, they said.

"Dataset markup is available for you to experiment with before it's released to general availability." added Google.

However, you can see the previews in the Structured Data Testing Tools here.

Data sets inlcuded in this new markup: "a table or a CSV file with some data; a file in a proprietary format that contains data; a collection of files that together constitute some meaningful dataset; a structured object with data in some other format that you might want to load into a special tool for processing; images capturing the data; and anything that looks like a dat aset to you."

Update 10/08: Google in a year in review of AMP Pages reveals that to date "over 600 million AMP documents created by sites all over the world including 232 locales and 104 languages" are indexed on its search engine.

Today AMP pages load from Google Search in less than one second on average. Beyond saving time with fast loading pages, "AMP also saves data -- AMP pages on Search use 10 times less data than the equivalent non-AMP page."

These pages cover news content, retail, travel, recipes, general knowledge and entertainment.

Google AMP Pages

About The Author

Deepak Gupta is a IT & Web Consultant. He is the founder and CEO of diTii.com & DIT Technologies, where he's engaged in providing Technology Consultancy, Design and Development of Desktop, Web and Mobile applications using various tools and softwares. Sign-up for the Email for daily updates. Google+ Profile.