Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2017-11-06 05:42:11

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

WordPress theme: how to suppress Google Analytics tracking code

I use the Yoast plugin for my WordPress site. It has many features I use.

Backlight adds Google Analytics tracking code. This is a global setting.

The photo pages created by Backlight are unknown to WordPress, so Yoast never touches them.

When I create my WP theme in Backlight, it added the tracking code. But this means it's being added twice now, since Yoast also inserts it.

Is there a way to suppress the GA tracking code in the theme templates?  Is this something I could do with PHP Plugins? If so, i'd need a clue.

EDIT: Opps, I'm typing faster than my brain this morning. Yoast no longer inserts the GA tracking code. I have another WP plugin that shows me basic analytics and it inserts the tracking code. Still, the question remains if there's a way to suppress Backlight from adding it to the WordPress templates.

Last edited by JimR (2017-11-06 05:50:58)


--Jim

Offline

#2 2017-11-06 09:12:08

JimR
Member
Registered: 2012-11-30
Posts: 348
Website

Re: WordPress theme: how to suppress Google Analytics tracking code

D'oh! I found it.

WordPress admin for setting the theme.

Custom Settings panel

"Google Analytics, as set in Backlight"


--Jim

Offline

#3 2017-11-06 16:33:57

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: WordPress theme: how to suppress Google Analytics tracking code

Yep, yep. Glad you found it. Included the option specifically for this type of case. big_smile


Matt

The Turning Gate, http://theturninggate.net

Offline

Board footer

Powered by FluxBB