• Resolved Nicu Danciu

    (@nicu-danciu)


    1) I have this code from Google Analytics:
    <script>
    (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’,’https://www.google-analytics.com/analytics.js&#8217;,’ga’);

    ga(‘create’, ‘UA-86133891-1’, ‘auto’);
    ga(‘send’, ‘pageview’);

    </script>

    They say I have to insert it into my website. Where should I insert this code?

    2) They also say that using this code I should create a file named „analyticstracking.php” and insert it in every PHP. How can I do this?

    2) They also say to include the following code in every page:
    <?php include_once(“analyticstracking.php”) ?>
    How can I do this?

    Nicu Danciu

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. You should be able to place the script within this plugin:
    https://wordpress.org/plugins/header-and-footer-scripts/

    2. I’m not really sure about this. Can you send me to some documentation of the process that you’re trying to complete?

    3. Same as above, it will be helpful to see some documentation.

    Thanks,
    kevin

    2 and 3. don’t do it that way. Just simply add the script into a header and footer scripts plugin or use a plugin like this: https://wordpress.org/plugins/google-analytics-for-wordpress/

    Ben
    Kadence Themes

    Thread Starter Nicu Danciu

    (@nicu-danciu)

    Hi,

    First of all I want to say that you guys are the best. I have never seen somebody providing a such of support on internet. I would give you ten times five stars.
    Before I do what you told me, I want to say that I have installed a plugin named Google Analytics Counter Tracker. I will give it some days of trial, than I will try your way.
    With many thanks,

    From Transylvania-Romania,
    Nicu Danciu

    Thanks for the kind words! Never hesitate to post questions on the forums. We’ll always do our best to get your issues sorted out!

    -Kevin

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘google analytics’ is closed to new replies.