Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Answer 1: Yes this will work perfectly fine: <code>ga('send', 'pageview', '/register.html');</code></p> <p>You don't need the 3rd parameter if they are on the page where the code is being executed. It will automatically grab the current page where the code is being ran from if the 3rd parameter is undefined. But than this parameter allows you to set the page yourself, which could be useful if you need to send a pageview to a different page other than the page that the code is being executed on.</p> <p>change to this:</p> <pre><code>&lt;script&gt; (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-XXXXXXX-1', 'xxxxxxxx.com'); ga('set', 'page', '/register.html'); ga('send', 'pageview'); &lt;/script&gt; </code></pre> <p>And in each tabs click event, add the corresponding code to track which tabs are clicked:</p> <p>Tab 1 click event: <code>ga('send', 'event', 'tab1', 'clicked');</code></p> <p>Tab 2 click event: <code>ga('send', 'event', 'tab2', 'clicked');</code></p> <p>Tab 3 click event: <code>ga('send', 'event', 'tab3', 'clicked');</code></p> <p>Tab 4 click event: <code>ga('send', 'event', 'tab4', 'clicked');</code></p> <p><a href="https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced" rel="noreferrer">Source</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload