Thanks for the note, Evan. We would like to use GTM… (I'm not an expert on that part, but my understanding is that it allows us far more analytics for conversion tracking, and also lets us track things like facebook pixels, etc., all built in).
I have tried code snippets repeatedly, and have never gotten them to work in Flex. The problem is that Cvent Flex is munging the code we insert so badly that it is impossible for google tags to even register that it is on the page.
Here's an example… let's say google says to
add this to the page header:
<script>
doThis
</script>
and
add this to the page body:
<script>
doThat
</script>
The Cvent flex guidelines say we should remove the script tags, because cvent will add them for us. So I make two code snippets:
First code snippet:
doThis
Second code snippet:
doThat
However, the result is that Flex squishes it all together, adds its own code, and puts this in the
page body:
<script nonce="asdfjkdf9refblahblahblahcode">
doThis
window.CVENT.addTriggerHandlers('RegistrationConversion', function() doThat
</script>
Google says: "nope, I don't recognize what you've done there, so I'm simply going to ignore it."
Maybe I'm using the code snippets wrong; maybe I need to make some other edits to the GTM code that Google gives us (besides removing the script tags). But I have never gotten it to work. I have asked Cvent to fix their code so that it doesn't mush all the code snippets together into a single script tag, but I haven't heard back yet.
------------------------------
David Blatner
President
Creative Pro Network
------------------------------
Original Message:
Sent: 12-11-2020 16:10
From: Evan Ring
Subject: Making Sense of Google Analytics
Hi David,
Is there a reason you don't want to use the out of the box integration with google analytics via the promotion & communication --> weblinks --> google analytics? There you can just add a GA tracking code and that's all that needs to be done.
If there is a reason you need to use google tag manager instead, you should try adding a code widget on the flex event website site designer. If you don't see the widget "code" on your build menu then it's likely your CVENT account manager needs to turn it on. This should allow you to add the first part but also the second part of the GTM install code that doesn't belong in script tags - which is what is likely giving you trouble today in code snippets today. It might be annoying to add this code widget on each page, but I'm thinking this could work for you and if it's built into a template then not so bad moving forward.
Best,
Evan
------------------------------
Evan Ring
Senior Operations Manager
Dow Jones & Co., Inc
Original Message:
Sent: 12-11-2020 11:46
From: David Blatner
Subject: Making Sense of Google Analytics
Did you ever get this working? I have had no luck in getting GTM tags in our Flex events because Cvent merges all the code snippets together into a single script tag, and puts it in the html body. Google literally can't see the code to trigger the tag.
------------------------------
David Blatner
President
Creative Pro Network
Original Message:
Sent: 01-24-2020 09:16
From: Jonathan Collins
Subject: Making Sense of Google Analytics
Thank you, Emile,
I will give this a try and see how it works. Thank you so much for sharing this!
- Jon
------------------------------
Jonathan Collins
Training Applications and eLearning Business Analyst
NSF Center for Public Health Education
Original Message:
Sent: 01-24-2020 05:14
From: Emile Vandemeulebroeke
Subject: Making Sense of Google Analytics
Hi Jonathan,
I have made a goal for registrations in our Analytics account and after some trial and error, it worked.
Here's my set-up:
- Goal configuration: don't use a template, but choose Adapted
- Goal details:
- Use a regular expression for the first field (Destination). For me it's: .*\/confirmation?.* (since confirmation is part of the URL)
- Use the Funnel option. I then did:
- "Start registration" with regular expression: .*\/regProcessStep1.* (and I made it obligatory)
- "During registration" with regular expression: .*\/regpage:.*
I did some Test subscriptions in our account, and it works for us, so I hope this can help you as well :-)
Kind regards,
Chiara
------------------------------
Emile Vandemeulebroeke
BEMAS-Belgium Maintenance Association vzw/asbl
Original Message:
Sent: 01-23-2020 12:39
From: Jonathan Collins
Subject: Making Sense of Google Analytics
Hi Everyone,
I am working to leverage Google Analytics in our CVent FLEX Events, but not having a lot of luck so far. My company's Marketing team provided me with a Google Analytics snippet and I have enabled it in "Code Snippets" in CVent, however, the Makreting team has responded that the data being pulled via the code does not help them set up a goal around conversions (e.g. people actually registering for an event).
Does anyone have any experience with this?
Thanks!
#Flex-Creating/ManagingEvents
#PromotingYourEvent
------------------------------
Jonathan Collins
Training Applications and eLearning Business Analyst
NSF Center for Public Health Education
------------------------------