Google Tag Manager – Conversions

Step 1

First you need to install the Google Tag Manager tag via DinnerBooking back end. You can read more about that here. Remember the tag is case sensitive so remember to copy paste it

Step 2

Create your first custom event trigger. The reason we don’t want you to use pageview trigger, is because the pageview can trigger multiple times. Custom events only trigger once.

  1. Add trigger name regarding what event you want to track:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  2. Add trigger type: Custom Event
  3. Add event name: Add one of the below event names regarding what you want to track. Remember again the name is case sensitive, so copy paste.
    • Restaurantbooking (if you want to track restaurant bookings)
    • Eventbooking (if you want to track events)
    • Giftcard (if you want to track purchase of gift cards)
  4. Save the trigger and repeat with the second trigger.
Create trigger

Step 3

Create your variables! To get the most information out of the tracking, you can add the following three variables to you tag:

  1. Conversion Value
  2. Transaction ID
  3. Currency Code

The above variables are optional and is not need for the tracking to work. But if you choose you want all variables you need to add three new variables.

  1. Add variable name:
    • DataLayer Variable – Currency
    • DataLayer Variable – ID
    • DataLayer Variable – Revenue
  2. Add variable type: Data Layer Variable
  3. Add Data Layer Variable Name: Add below event names regarding what you want to track. Remember again the name is case sensitive, so copy paste.
    • Conversion Value: ecommerce.purchase.actionField.revenue
    • Transaction ID: ecommerce.purchase.actionField.id
    • Currency Code: ecommerce.currencyCode
  4. Save the variable and repeat with the two other variables.
Create variabel

Step 4

Create your first tag! Regarding what you need, you have to do this step twice if, you want to track both eventbookings and restaurant bookings. Before you can create a Google AdWords conversion tag in Google Tag Manager, you need to create a new conversion action in Google AdWords. If you have already done this, you can skip to next step.

  1. Open your Google AdWords account.
  2. Go to Tool and settings.
  3. Press Conversions in the Measurement tab.
  4. Press New conversion action.
  5. Choose Website.
  6. Set goal category to purchase.
  7. Add conversion name e.g., Purchase – Eventbooking or Purchase – Restaurantbooking
  8. Choose: “Use different values” (if there is a value) where value is just 0.1 in your preferred currency or set to “Don’t use a value for this conversion action (not recommended)” if there is no value (booking without prepayment).
  9. Choose Every.
  10. Press Create and continue.
  11. Choose the Use Google Tag Manager tab. (wait with next step so you have the information for later)
  12. Press Next.
Create conversion in Google AdWords

Now when you have created the Google AdWords action you need to open Google Tag Manager again. Now you are ready to create your first tag!

  1. Add tag name: In the top right corner add variable name e.g.,
    • AdWords – Conversion – Restaurantbooking
    • AdWords – Conversion – Eventbooking
    • AdWords – Conversion – Gift Card
  2. Add tag type: Google Ads Conversion Tracking
  3. Add Conversion ID: Find the conversion ID from your Google AdWords action you made above.
  4. Add Conversion label: Find the conversion label from your Google AdWords action you made above.
  5. Add Conversion Value: Press the “lego block” and choose the Conversion Value variable you made earlier.
  6. Add Transaction ID: Press the “lego block” and choose the Transaction ID variable you made earlier.
  7. Add Currency Code: Press the “lego block” and choose the Currency Code variable you made earlier.
Create tag

Step 5

  1. Add the trigger from step 1 (remember to choose the correct trigger for the right event).
  2. Set Firing Triggers to:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  3. Press Save.

Step 6

Create a Converson linker. Before you can track conversion that comes from your domain to DinnerBooking’s you need to add a conversion linker and trigger. First create the new trigger.

  1. Add trigger name: Pageview – DinnerBooking
  2. Add Trigger Type: Page view
  3. Set This trigger fires on to: Some Page Views
  4. Fire trigger on: Page URL + Contains + your homepage URL
  5. Press Save.
Create conversion linker

Now you can create your Conversion linker so it connects the conversion between your homepage and DinnerBookings.

  1. Add tag name: Conversion Linker
  2. Add Tag Type: Conversion Linker
  3. Set Firing Triggers to: All pages + Pageview – DinnerBooking
  4. Press Save.
Set triggers to All Pages + Pageview - DinnerBooking

Step 1

First you need to install the Google Tag Manager tag via DinnerBooking back end. You can read more about that here. Remember the tag is case sensitive so remember to copy paste it

Step 2

Create your first custom event trigger. The reason we don’t want you to use pageview trigger, is because the pageview can trigger multiple times. Custom events only trigger once.

  1. Add trigger name regarding what event you want to track:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  2. Add trigger type: Custom Event
  3. Add event name: Add one of the below event names regarding what you want to track. Remember again the name is case sensitive, so copy paste.
    • Restaurantbooking (if you want to track restaurant bookings)
    • Eventbooking (if you want to track events)
    • Giftcard (if you want to track purchase of gift cards)
  4. Save the trigger and repeat with the second trigger.
Create trigger

Step 3

If you want to create a conversion event where you track these specific variables you need to create a custom HTML.

  1. Add tag name regarding what event you want to track:
    • Facebook – Conversion – Restaurantbooking
    • Facebook – Conversion – Eventbooking
    • Facebook – Conversion – Gift Card
  2. Add Tag Type: Custom HTML
  3. Insert the below script:

    <script>
    fbq('track', 'Purchase', {
    value: {{DataLayer Variable - Revenue}},
    currency: {{DataLayer Variable - Currency}},
    order_id: {{DataLayer Variable - ID}},
    eventID: {{DataLayer Variable - ID}},
    });
    </script>

Set up tag
  1. Open Tag Sequencing under Advanced Settings.
  2. Checkmark: Fire a tag before
  3. Set-up Tag: You Facebook Pageview.
  4. Checkmark: Don’t fire
Set the correct settings

Step 4

  1. Add the trigger from step 1 (remember to choose the correct trigger for the right event).
  2. Set Firing Triggers to either:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  3. Press Save.

Step 1

First you need to install the Google Tag Manager tag via DinnerBooking back end. You can read more about that here. Remember the tag is case sensitive so remember to copy paste it.

Step 2

Create your first custom event trigger. The reason we don’t want you to use pageview trigger, is because the pageview can trigger multiple times. Custom events only trigger once.

  1. Add trigger name regarding what event you want to track:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  2. Add trigger type: Custom Event
  3. Add event name: Add one of the below event names regarding what you want to track. Remember again the name is case sensitive, so copy paste.
    • Restaurantbooking (if you want to track restaurant bookings)
    • Eventbooking (if you want to track events)
    • Giftcard (if you want to track purchase of gift cards)
  4. Save the trigger and repeat with the second trigger.
Set up your trigger

Step 2

  1. Add tag name regarding what event you want to track:
    • GA3 – Conversion – Restaurantbooking
    • GA3 – Conversion – Eventbooking
    • GA3 – Conversion – Gift Card
  2. Add Tag Type to: Google Analytics: Universal Analytics
  3. Set Track Type to: Event
  4. Set category to: Enhanced Ecommerce
  5. Set action to: {{Event}}
  6. Set Label to: {{Page Path}}
  7. Set Value to: {{DataLayer Variable – Revenue}}
  8. Set Non-Interaction Hit to: True
  9. Set Google Analytics settings to: Google Analytics tracking ID or see step 4 from here.
  10. Set Enable overriding settings in this tag to: ✅
  11. Under More settings go to E-commerce and set Enable Enhanced Ecommerce Features to: True
  12. Set Use Data Layer to: ✅
Set up tag part 1
Set up tag part 2

Step 3

  1. Add the trigger from step 1 (remember to choose the correct trigger)
  2. Set Firing Triggers to all these three:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  3. Press Save.
Add trigger to your tag

Extra

Do you wanna track more than just conversion and value. You can set up the following custom dimensions and metrics:

  • Currency – If you have restaurants in different countries.
  • Booking date – Track exact data when people booked.
  • Booking day of the week – Track the mose popular day of the week.
  • Restaurant ID – If you have multiple restaurants in same Google Analytics properties.
  • Booking time – Track the mose popular time on the day.

Currency

Do you want to track the correct currency, you have to setup the currency in the Fields to Set in the tag. But first you need to create the variable which have to look like this:

  1. Set Variable name to: dataLayer – ecommerce – Currency
  2. Set Variable Type to: Data Layer Variable
  3. Set Data Layer Variable Name to: ecommerce.currencyCode
  4. Set Data Layer Version to: Version 2
  5. Press Save (no in the picture).
  6. Open your Google Analytics Conversion tag again and set Field name to: currencyCode
  7. Set Value to: {{dataLayer – ecommerce – Currency}}
  8. Press Save (no in the picture).
Currency variable
Set currency code into your tag

Booking date

Do you want to track the correct booking date, you have to setup the booking date in the Custom Dimensions in the tag. But first you need to create the variable which have to look like this:

  1. Set Variable name to: dataLayer – ecommerce – Booking date
  2. Set Variable Type to: Data Layer Variable
  3. Set Data Layer Variable Name to: ecommerce.checkout.products.0.dimension1
  4. Set Data Layer Version to: Version 2
  5. Press Save (no in the picture).
  6. Open your Google Analytics Conversion tag again and set Index to: 1
  7. Set Dimension Value to: {{dataLayer – ecommerce – Booking date}}
  8. Press Save (no in the picture).
Booking date variable
Set booking date into your tag

Booking day of the week

Do you want to track the correct booking day of the week, you have to setup the booking day of the week in the Custom Dimensions in the tag. But first you need to create the variable which have to look like this:

  1. Set Variable name to: dataLayer – ecommerce – Booking day of week
  2. Set Variable Type to: Data Layer Variable
  3. Set Data Layer Variable Name to: ecommerce.checkout.products.0.dimension2
  4. Set Data Layer Version to: Version 2
  5. Press Save (no in the picture).
  6. Open your Google Analytics Conversion tag again and set Index to: 2 (if this is your first dimension just set to 1 instead)
  7. Set Dimension Value to: {{dataLayer – ecommerce – Booking day of week}}
  8. Press Save (no in the picture).
Booking day of the week variable
Set booking day of the week into your tag

Restaurant ID 

Do you want to track the correct Restaurant ID, you have to setup the Restaurant ID in the Custom Dimensions in the tag. But first you need to create the variable which have to look like this:

  1. Set Variable name to: dataLayer – ecommerce – Restaurant ID
  2. Set Variable Type to: Data Layer Variable
  3. Set Data Layer Variable Name to: ecommerce.checkout.products.0.dimension3
  4. Set Data Layer Version to: Version 2
  5. Press Save (no in the picture).
  6. Open your Google Analytics Conversion tag again and set Index to: 3 (if this is your first dimension just set to 1 instead)
  7. Set Dimension Value to: {{dataLayer – ecommerce – Restaurant ID}}
  8. Press Save (no in the picture).
Restaurant ID variable
Set restaurant ID into your tag

Booking time 

Do you want to track the correct Booking time, you have to setup the Booking time in the Custom Dimensions in the tag. But first you need to create the variable which have to look like this:

  1. Set Variable name to: dataLayer – ecommerce – Booking time
  2. Set Variable Type to: Data Layer Variable
  3. Set Data Layer Variable Name to: ecommerce.checkout.products.0.metric1
  4. Set Data Layer Version to: Version 2
  5. Press Save (no in the picture).
  6. Open your Google Analytics Conversion tag again and set Index to: 1
  7. Set Metrics to: {{dataLayer – ecommerce – Booking time}}
  8. Press Save (no in the picture).
Booking time variable
Set Booking time into your tag

Step 1

First you need to install the Google Tag Manager tag via DinnerBooking back end. You can read more about that here. Remember the tag is case sensitive so remember to copy paste it.

Step 2

  1. Add trigger name regarding what event you want to track:
    • Restaurantbooking – Custom Conversion event
    • Eventbooking – Custom conversion event
    • Giftcard – Custom conversion event
  2. Insert your LinkedIn Partner ID: You can find your LinkedIn Partner ID here.
  3. Create a conversion tracking in LinkedIn Campaign Manager: You can follow this guide how to set it up.
  4. Insert Your Conversion ID.
Create LinkedIn tag

Step 3

  1. Add the trigger from step 1 (remember to choose the correct trigger for the right event).
  2. Set Firing Triggers to: All pages
  3. Press Save.