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="https://google-analytics-suite.bi.owox.com/gtag/js?id=GA_TRACKING_ID"></script>
<script>
  window
.dataLayer = window.dataLayer || [];
 
function gtag(){dataLayer.push(arguments);}
  gtag
('js', new Date());

  gtag
('config', 'GA_TRACKING_ID');
</script>

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?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.