Data Collection — Page Tagging (JavaScript)


Google Analytics Universal Analytics tracking code

Exhibit 27.4   Google Analytics Universal Analytics tracking code.

Page tags are snippets of JavaScript code attached to webpages, used for tracking users. Exhibit 27.4 shows an example of Google tag, which is the most widely used page tag.

Here is how page tags work:

  1. The JavaScript code executes every time a webpage is loaded, regardless of whether it is sourced from cache, proxy server or the website’s server.
  2. The script calls back the website’s server and passes the user’s information to the server. These call backs are asynchronous, ajax-based, so they do not to impair performance.
  3. The JavaScript assigns a persistent cookie to store a client ID on the user’s device. When the user revisits the page, the stored ID identifies the user, provided the cookie has not been deleted.
  4. If data is collected through a third party such as Google Analytics, the data is passed onto that party’s server. For tracking purposes, the service provider will assign a site ID. For example, in Exhibit 27.4, the ID G-LRJ5T7W3QL is assigned to the site www.ashokcharan.com.

Page tagging is a big improvement over server logs, yet it too has drawbacks. The most significant issue is the deletion of cookies. Whenever cookies are deleted, repeat users are counted as new users, leading to inaccurate tracking.

Previous     Next

Use the Search Bar to find content on MarketingMind.







Marketing Analytics Workshop

Marketing Analytics Workshop

In an analytics-driven business environment, this analytics-centred consumer marketing workshop is tailored to the needs of consumer analysts, marketing researchers, brand managers, category managers and seasoned marketing and retailing professionals.


Digital Marketing Workshop

Digital Marketing Workshop

Two-day hands-on training on Digital Marketing, conducted at the NUS Business School. Designed to make you more effective in developing and executing digital marketing strategies. You learn to use Google Search Console, Google Analytics and Google Ads to execute online marketing initiatives, run search and display advertising campaigns, and track and optimize performance.


What they SHOULD TEACH at Business Schools

What they SHOULD TEACH at Business Schools


Is marketing education fluffy too?


Experiential Learning via Simulators | Best Way to Train Marketers

Experiential Learning via Simulators | Best Way to Train Marketers


Marketing simulators impart much needed combat experiences, equipping practitioners with the skills to succeed in the consumer market battleground. They combine theory with practice, linking the classroom with the consumer marketplace.