sharingspace / SharingSpaceCore

AnyShare
https://anyshare.coop
GNU Affero General Public License v3.0
3 stars 1 forks source link

Google optimize code not working #588

Closed aiotea closed 6 years ago

aiotea commented 6 years ago

We closed tickets to update the google analytics tracking code to work w/ google optimize however it is not tracking.

I suspect this is b/c of how the code for google analytics is slightly different w/ the "if" statement b/c we have two id's.

Can you please update the google analytics code so it fits the required format? Also, plz make sure all steps below are followed...


Move your Analytics tracking code as high as possible in the of the page. Copy the Optimize plugin (below): ga('require', 'GTM-MWRV7QL');

Paste the Optimize plugin into your existing Analytics tracking code as shown below:

Step 2: Minimize page flickering This snippet ensures that users only see your variant content, minimizing page flicker. Copy the code below. Paste it just before your updated Analytics tracking code anywhere you want to use Optimize.

step 1.png

step 2.png