Add a Google Analytics tracking code to your event website and event mobile app

Add a Google Analytics tracking code to your event website and event mobile app

As an event organizer, sometimes you want to keep tabs on how many visitors are coming to your event website. You also may want to know where visitors are coming from (if they clicked on a link in your event Facebook page, or your Twitter feed, etc.). You may also want to know what pages they are looking at on your event site and how long they are staying. Google Analytics is a great solution to track visit statistics like these, and it’s free to use!

When you use Grenadine Event Planner to create your event website, you can customize your event site’s domain (as explained in this post) and you can also use your own Google Analytics tracking code to collect stats on attendee visits, registrations, etc. Here are steps to get this done:

Step 1: Set up your event website to use your own domain

The first step is to set up your automatically-generated event website in Grenadine to use your own custom internet domain or subdomain. This makes it so that the address that your attendees see your domain in their browser address bar, and helps your branding and also attributes all keywords to your own domain within search results.

See instructions on setting up your domain for your event website here: Publishing your event website under a custom domain.

Step 2: Get a Google Analytics tracking code

If you don’t have your own Google Analytics tracking code to use with your custom domain, now is the time to get one. Here’s a good tutorial from Google on how to do this:

Set up Analytics tracking

Once you’ve completed your Analytics setup, you should have a tracking code that looks something like this:


You can usually find your tracking code in the administration section (within Google Analytics), that looks like this:

Step 3: Ask Grenadine to link your tracking code

Now that you have your very own tracking code, contact Grenadine support and ask us to tie your tracking code to your event website. We’ll tie your tracking code and within about 48 hours, you’ll start to see some traffic numbers coming into your Google Analytics statistics dashboard. To make this work, we’ll insert a short JavaScript snippet on each page of your event website that looks something like this:

&lt;!&#8211; Global Site Tag (gtag.js) &#8211; Google Analytics &#8211;&gt;
&lt;script async src=&#8221;https://www.googletagmanager.com/gtag/js?id=<strong><span style="color: #ff0000;">UA-47363416-3</span></strong>&#8220;&gt;&lt;/script&gt;
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag(&#8216;js&#8217;, new Date());</p>
<p>gtag(&#8216;config&#8217;, &#8216;<strong><span style="color: #ff0000;">UA-47363416-3</span></strong>&#8216;);

Bonus step: collect stats from your event mobile app

As a bonus step, if you’re using the Grenadine mobile app for events (called the Grenadine Event Guide) for iOS or Android, we’ll automatically link your Google Analytics tracking code to your mobile app as well. As soon as users start using your app, you’ll get statistics on the number of users, the actions that they are carrying out (for example, adding an item to their favorites, logging in, etc.) and the pages that they are visiting within the app.