In addition - has anyone had any luck setting up G...
# support
m
In addition - has anyone had any luck setting up Google Optimize + GA4 (in cloud mode) together in Rudderstack? Optimize says it's not seeing the GA4 tag on our website. Do we have to use GA4 in Device Mode in order to have Google Optimize work?
a
@mammoth-answer-4269 Did you manage to get this to work using Device Mode?
m
Hi - we ended up choosing not to implement it for now, as our preference was to run GA4 in cloud mode.
@silly-kitchen-30880 - I did follow the instructions on that link. My question though is specifically if Google Optimize requires Google analytics 4 to also be loaded in Device Mode. I assume the answer is yes, but it would be good to get confirmation on my specific question :)
g
Hi @mammoth-answer-4269, I confirmed with the team. You can use GA4 in cloud mode and Google Optimize in device mode together.
m
Ok - are there instructions on how to do so? Because every time we tried this, it told me that Optimize would not work without gtag.js
The documentation is quite unclear
So in my experience this wasn’t possible, and there was no useful documentation as to how it might be achievable.
g
m
Yes, I’m following that doc. I followed the instructions exactly and could not get it to work.
I will note that the doc says that if you are already using a separate GA destination, not to tick the Load GA box. Since we had GA set up in cloud mode we followed this direction. However, ticking that box OR using GA in device mode was the only thing that stopped the “no gtag” error in Optimize. Unfortunately, ticking that box with GA in cloud mode caused duplication of events.
g
It should not be ticked if you already have set GA4 as destination in RudderStack
m
Yes - so without it ticket it doesn’t work
It consistently causes a “gtag,js is not loaded” error in Optimize
The error only shows up in Optimize, not in Rudderstack
g
What do you mean by that?
RudderStack will load Optimize. Are you using duplicate scripts?
m
If you go into Optimize after setting it up according to the Rudderstack documentation, with GA4 in Cloud Mode, not ticking the “ load GA” box, then it produces a “gtag.js is not present” error.
In the Optimize UI.
We are not using duplicate scripts. It’s not saying that the Optimize script isn’t loaded - it is saying that it cannot find the GA script.
Given that conversions are set in GA this removes a major part of the functionality of Optimize
g
Is there any error in website developer console?
m
Sorry, I feel like we are going around in circles. I am actually on leave and would like to pick this up when I’m back from vacation, if that’s okay.
g
Ok. No issues. Meanwhile, I will look more into this.
m
Thank you :)