Optimize
1.9K members online now
1.9K members online now
Get answers to frequently asked questions, read the glossary of testing terminology and explore some example experiment ideas to get the creative juices flowing.
Guide Me
star_border
Reply

Unable to end an experiment

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I have Google Optimize implemented with GTM on my website.

 

Some experiments I worked on worked just fine, but no when I want to end an experiment I get this message: http://prntscr.com/fblmgl

The container has the following errors.

 

I don't understand where the issue is?

 

Thanks

 

1 Expert replyverified_user

Unable to end an experiment

Google Employee
# 2
Google Employee

Hi Claudiu

 

Just checking: is this still happening or have you managed to resolve the problem?

It is related with a custom javascript variable that you must have defined in the related targeting category.

 

Unable to end an experiment

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hei Dimitris,

 

Thanks for the reply.

I managed to solve the problem by changing a Goal from GA -> this automatically ends an experiment that uses that goal.

 

The issue here was that I could not troubleshoot this because I didn't know what variable that was.

 

Are you saying that this one is from the Targeting option here: http://prntscr.com/fc982t ?

 

Unable to end an experiment

Google Employee
# 4
Google Employee

Yes, click on the targeting tab on any draft experiment and then open the list of targeting categories (i.e. click on "Create Rule" or "AND") and pick the "Custom javascript" category.

 

Then click on the "Variable" drop down. I believe that the name of the variable that is shown in your message should be there. If you click on it, you should be able to see its definition (i.e javascript code) - most likely there is a bug in its implementation.

 

Perhaps someone else in your team (if you are not aware of this feature) defined this variable to implement some more advanced targeting logic.

 

See: https://support.google.com/360suite/optimize/answer/6301785?hl=en

 

Obviously I would agree that there is a lot of room for improvement in the way that error handling and messaging is happening, so thank you for the feedback.

Unable to end an experiment

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Yes, that makes sense.

Because we are also using GTM I thought that some variable from GTM created that problem.

 

I checked the Targeting options and these are the ones I used: http://prntscr.com/fd5usf

 

It is possible that a person from the team to have tried to add a Custom Variable but it was not added for the experiment.

 

Thanks for the reply and help to better understand this Smiley Happy

Unable to end an experiment

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Hei, Dimitris,

 

I deleted all the draft experiments but I still get the same error - http://prntscr.com/fne2l7

 

Not sure why this is still happening, and if I change the Goal from Google Analytics. it doesn't end it anymore.

 

Ideas?

Unable to end an experiment

Google Employee
# 7
Google Employee

What about following the instructions above: go to targeting for any experiment and open the list of targeting categories (i.e. click on "Create Rule" or "AND") and pick the "Custom javascript" category.

 

Do you see a variable with the name shown in the drop down in that category?

 

You can click on the "edit" icon in the drop down to fix the bug it contains of remove it.

 

This variable is not related with the ones that you have in your GTM container.

 

Someone from your team did that specifically for Optimize, so removing it will not affect your GTM configuration.

 

Unable to end an experiment

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭

Hei, Dimitris,

 

Thanks again for the reply.

 

 

This is correct. I created a new experiment, followed the steps and deleted the variable.

Now it worked.

 

I appreciate the time you took with this one.

 

All the best,

C.