google-optimize-module icon indicating copy to clipboard operation
google-optimize-module copied to clipboard

Missing Features

Open hecktarzuli opened this issue 4 years ago • 4 comments

a) Robots - It's critical that spiders/bots get assigned the original version of the experiment so no unintended side effects occur. I propose a regex to match against user agent with a default that includes 'spider', 'bot' etc.. It can be disabled.

b) Emit Assignment Function - Since there are so many edge cases that would negate the initial window.ga push, a helper function should be exposed that would run the window.ga push again whenever you want.

c) Get Optimize Value Function - To help make this lib more useful outside of Vue Analytics, a helper function or $exp.prop should be exposed that gets the value of the Optimize token (uePZO471S-6qGUwbeUyw_Q.1 for example). This would make this lib much more helpful in GTM as well.

d) Ability to Disable Auto-Assign Reporting - There are cases when you don't want the assignment on first page hit. Specifically when you are looking at people hitting a certain page type you don't want to tell Optimize/GA about it as your results would be diluted with people that may have never seen the experiment. This should be optional.

If these are acceptable, I wouldn't mind making a pull req, but before I spent time on it I wanted to make sure the Nuxt gang was on board since this lib doesn't seem to be getting any updates besides dep bumps.

@pi0 @farzadso

cc: @Atinux

hecktarzuli avatar Jul 01 '20 02:07 hecktarzuli

Yes I'd like to see these features added to

mmw-ben avatar Jul 01 '20 15:07 mmw-ben

Hi, @hecktarzuli Nice ideas! Would be nice having a proposal/PR per feature :)

pi0 avatar Jul 06 '20 09:07 pi0

@mmw-ben workin on it!

hecktarzuli avatar Jul 07 '20 15:07 hecktarzuli

@pi0 @hecktarzuli Sorry for the late reply guys. I'll be there along the way for every feature we want to add.

farzadso avatar Jul 08 '20 07:07 farzadso