Closed thijskaspers closed 3 months ago
I just attempted to replicate this, but was unable to.
I turned on a tracking script, and then I turned on Manually Set SEOmatic Environment and set Environment to live
and the tracking scripts were rendered, and the robots
tag was rendering as I'd expect:
<meta name="robots" content="all">
Then keeping Manually Set SEOmatic Environment on, I changed the Environment to local
and the tracking scripts were not rendered. Additionally, the robots
tag was rendered as I'd expect:
<meta name="robots" content="none">
So I'm guessing something else may be afoot here?
I'm happy to help you diagnose this further, but I think it may be some other complication that is causing this on your end. Or at least I'm unable to reproduce it here.
Thanks Andrew! We are seeing the behavior, so let me further dive into it and do some debugging to find out what is causing this. I'll keep you posted
Describe the bug
Our environment is set to
local
via an ENV, and the CP dashboard page states the following:However, we are still seeing the Google Tagmanager script being inserted, and meta robots tag set to 'all', even though the environment is not
live
, butlocal
instead.We have noticed this has to do with the manuallySetEnvironment lightswitch. If we disable that, the environment is still
local
(being automatically determined by SEOmatic), but now, tracking scripts are not rendered and robots is set tonone
correctly.This is unexpected behavior? It should check the environment name, regardless of the
manuallySetEnvironment
setting?To reproduce
Steps to reproduce the behaviour:
Expected behaviour
SEOmatic should check the environment name, regardless of the manuallySetEnvironment setting?
local
==local
.Versions