Skip to content
Public Ticket #16709

how to add google analytic code

Conversation thread

PenciDesign replied

Staff Reply

Hi,

Your google analytics code is missing. You need to use:

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async="" src="https://www.googletagmanager.com/gtag/js?id=G-FT6XCxxxxxx"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-FT6XCxxxxxx');
</script>

And put it to Customize > Footer Options > Google Analytics Code 

or Customize > Logo & Header > General > Add Custom Code Inside <head> Tag

Best Regards,

PenciDesign

kurniaikhwan started the conversation

Conversation Start

hello, 

where to put this google analytic code, thanks.

<!-- Global site tag (gtag.js) - Google Analytics -->

<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-FT6XCxxxxxx');
</script>

Want to join this conversation or access attachments? Sign in first.