• Resolved jamesstcrice

    (@jamesstcrice)


    Hello,

    Being able to show a snapshot of google data in the WP dashboard is great. However, I already have GTM and GA included in my sites by another method in my custom theme.

    Is it possible to use Site Kit for the dashboard features, but prevent it from adding any code to the front end of the site?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @jamesstcrice! Yes, Site Kit should detect these other methods added by your theme for Google Analytics, not insert additional code, and will display dashboard data.

    For Google Tag Manager, Site Kit currently provides a way to insert the container code, but does not display data for that service. Since you’re already including it in your theme, you don’t have to configure Google Tag Manager in the plugin.

    Thread Starter jamesstcrice

    (@jamesstcrice)

    Thanks, Renee.

    That is true, but our GA is included via GTM. So while I would like to see the GA data via Site Kit, I don’t need Site Kit to insert redundant GA code…

    Is there any hook or anything I could use to disable that output?

    @jamesstcrice there is an option in the Google Analytics settings that lets you remove the Google Analytics snippet that Site Kit provides: https://jmp.sh/O8LUsPa

    In terms of display data for Google Analytics via GTM that is something I need to confirm. There is an open issue for detecting a GTM snippet in our Github Repository, so that is in progress. So at this time we would not be able to detect the container you placed. Are you able to share how you are implementing the container in your theme?

    Thread Starter jamesstcrice

    (@jamesstcrice)

    Thanks, Renee – That setting is very useful to know about. It would be great if that was visible as part of the setup process, and not just in the settings after the fact.

    In terms of GTM, I don’t need to specifically display GTM data as long as the Search Console and Analytics data displays as expected. To answer your question, the GTM snippet is essentially hard coded into my theme, but the specific ID comes from an Advanced Custom Field that is set depending on the site… but again GTM is not a problem as long as the primary services are displaying data and I can stop the plugin from adding any code to my pages, which it appears that setting will do (which is great).

    This is unrelated, so I can start a new tread if you want, but on a number of occasions after already going through the site kit setup wizard, I logged into the WP dashboard and was prompted to setup Site Kit as if I had not already done it. This happened across multiple sites. Any idea why that would be?

    Thanks!

    @jamesstcrice thanks for the feedback and additional report. We’re working on a fix now. I’ll need to confer with our team about your implementation/ request, but I’ll follow up with you about that too.

    Thread Starter jamesstcrice

    (@jamesstcrice)

    Thanks @reneesoffice. The setup loop is definitely the higher priority of the two. Appreciate the prompt responses.

    Hi @jamesstcrice ! Sorry for the delay in getting back. We’ve been actively working on trying to resolve the setup loop issue. We’ve added some additional improvements in 1.0.3, but it is also affected by how much traffic is being generated currently since the release. We’re also working on stabilizing this so you should see improvements. Please feel free to update us on your experience thus far.

    Regarding your implementation and still surfacing Google Analytics data in the dashboard- it’s possible.

    1) Remove the snippet that Site Kit places in the settings by going to Site Kit > Settings > Google Analytics > Edit, remove the snippet, and confirm changes.

    2) Edit the Google Analytics settings again, manually choose which Account, Property, and View you want to display in the Site Kit dashboard.

    Let me know if this helps!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Dashboard data only, do not add code to site?’ is closed to new replies.