Support » Plugin: Blank Slate » Google Analytics Not Registering Pages with Blank Slate

  • I’m using Blank Slate to build this landing page with Divi Builder (Plugin) and when the page template is set to Blank Slate, the page won’t show in Google Analytics. If I change the page template to Default Template, the page instantly shows up in GA, but obviously the page doesn’t look the way it should. I’ve tried adding my GA tracking script code into a Divi Code Module at the top of the page, but that also does not work. Can someone please help me troubleshoot this?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Aaron Reimann

    (@areimann)

    If you’re putting your GA code in a Divi module, it’s only going to track pages that have that module on it, hence the problem we’re seeing.

    I would either enqueue the snippet of code properly in the child theme or use a Google Analytics to drop in the UA code.

    OR… Doesn’t Divi give us a place top drop in scripts? You could also drop in in there.

    Does that make sense?

    Plugin Author Aaron Reimann

    (@areimann)

    Thread Starter uaweb

    (@uaweb)

    Hey Aaron,

    Thank you for your quick response!

    Correct, my site IS being tracked on all other pages that AREN’T using the Blank Slate template via tracking code in the head of the php, so my effort was to add the GA tracking code specifically to the pages that are using the Blank Slate page template and are being built with the Divi Builder PLUGIN. Yes, I am using the PLUGIN vs. the Divi THEME on this site as its a temporary bandaid until the site is completely relaunched on the Divi Theme.

    Plugin Author Aaron Reimann

    (@areimann)

    My fault, I was thinking you were using the Divi theme, not just the page builder.

    So, in the case, you can just drop some code in the child theme’s (or theme’s) functions.php. Here is a tutorial on how to drop in the code:

    https://crambler.com/how-to-add-google-analytics-tracking-code-to-your-wordpress-site-without-a-plugin/

    Basically, you should start at step #4.

    Thread Starter uaweb

    (@uaweb)

    Hmm…okay, I actually have the tracking code being injected into the pages via the Google Tag Manager (GTM) plugin. The site is tracking every other page (minus the Blank Slate templated pages) so I don’t really want to mess with that. Do you have any other thoughts?

    Plugin Author Aaron Reimann

    (@areimann)

    I see the code in the source of this page:

    https://armourproofcoatings.com/spring22coat/

    Thread Starter uaweb

    (@uaweb)

    Yeah, that’s why I was confused also. Hmmm…my developer is also stumped. As I mentioned, if I change the page template from Blank Slate it pops up instantly in GA, so I don’t understand. Are there any settings/functions that I can adjust in the plugin to ignore specific code or anything?

    Plugin Author Aaron Reimann

    (@areimann)

    Our plugin doesn’t modify anything in <head> (which is where the GA code would go).

    It only modifies things past <body>.

    I’m wondering if the GA plugin is not doing it properly…

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.