Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Google Analytics Integration Plugin Problem?

  • #7800
    Avatar photo[anonymous]

    Hello,

    I’m trying out the new google analytics integration plugin. Unfortunately this one doesn’t work and after research I see that the code to use for the integration is the code “noscript”

    How can we use the classic code with this plugin?

    Thanks in advance,

    #7801
    Avatar photoBob

    It works very well. I think you are trying to see the code in the preview,  so you should enable the “Output Code in Preview Mode” option → https://getpublii.com/docs/google-analytics.html

    #7802
    Avatar photo[anonymous]

    Hello Bob,

    Thank you for the feedback !

    I imagine that I am using the plugin incorrectly.
    I tried both modes:
    In preview mode with the option activated
    In production mode and synchronized on the server side

    I have also tried using the Google Assistant chrome extension but it doesn’t detect anything

    I’m using the gtag.js variant code.
    The code G-xxxxxxx comes from “Data Stream” which is in Google Analytics.
    I have not activated IP Anonymization
    Custom code is empty

    Could you tell me where and how the code normally appears?

    Thanks for your help,

    #7803
    Avatar photoBob

    any URL?

    #7804
    Avatar photo[anonymous]

    I was doing my tests with Persona Free theme… (last version)  I tried with other themes and it seems OK.
    Is it possible ?

    #7805
    Avatar photoBob

    ok, still a problem with the Persona theme?

    #7806
    Avatar photo[anonymous]

    I think so, if I switch to Technews for example, it works in “Preview” and “Sync mode”. I indeed find the code G-xxxx by looking in the code of the page.

    I just tried again with Persona and there, I can’t find the Google code in the code of the page.

    So I hope it’s just a problem with this theme? I deleted the theme and re-installed it on my computer but the problem remains

    #7807
    Avatar photoBob

    Could you please provide the live URL for both persona and simple installations?

    #7811
    Avatar photo[anonymous]

    I found the problem, it was related to my installation because I modified files of this theme to do tests.
    I broke the head.hbs file and the part with this {{{publiiHead}}}

    After uninstalling all of my themes and reinstalling, everything seems OK with all themes.

    Again sorry for the inconvenience for an error that comes from my side