Book the exclusive demo launch to experience the OWOX BI analytics

The gtag.js library is a JavaScript library for measuring how users interact with your website. This document explains how to collect user interaction data using gtag.js and OWOX BI custom domain.

Find the following JavaScript code near the top of the <head> tag, and replace a domain specified in snippet with OWOX BI custom domain:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=""></script>
.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
('js', new Date());

('config', 'GA_TRACKING_ID');

After this change the above code will operate in a different way:

  1. load gtag.js and other libraries from a proxy domain,
  2. send hits to Google Analytics via OWOX BI proxy.
Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request


Please sign in to leave a comment.