Skip to main content

Ticketing widget

Setup

Note

Before starting the setup, you should have a Google Tag Manager and a Google Analytics account.

Setting up Google Analytics 4 requires executing steps in the Google Analytics application, the Google Tag Manager application, and in the webpage hosting the Ticketing widget.

When all these steps are executed correctly, data from the Ticketing widget will become available in the Google Analytics reports after 24 to 48 hours.

Setup Google Analytics 4

  1. Login to your Google Analytics account.

  2. Create a new data stream via Admin > Account > Property > Data Streams.

    3.png

    Click the Add streams dropdown, and select the source type you want to stream. Select Web for the Ticketing widget.

    4.png
  3. Set up web stream.

    Fill in the URL of the website hosting the Ticketing widget and choose a stream name. Thereafter, click the Create stream button.

    5.png

    Ignore the installation instructions by clicking the close button.

  4. Copy the Measurement ID so that it can be used in the setup of Google Tag Manager.

    6.png

Setup Google Tag Manager

  1. Login to your Google Tag Manager account and start by creating a new container.

    7.png
  2. Fill in a container name, select the correct target platform (Web), and click Create.

    8.png

    Ignore the ‘Install Google Tag Manager’ window for now, by clicking the OK button.

  3. On the ‘Workspace‘ page, click Tags and then click New.

    9.png
  4. Edit the Tag Configuration and choose Google Analytics: GA4 Configuration as the tag type.

    10.png
    11.png
    12.png
  5. Paste the ‘Measurement ID‘ you copied from Google Tag Manager.

    If you need to copy it again, you can find it in Google Analytics > Admin > Account > Property > Data Streams > Your stream > MEASUREMENT ID (identifier starting with ‘G-’).

    14.png
  6. Add a trigger by clicking on the Triggering tile and then the + button.

    13.png
  7. Click the Trigger Configuration tile and select Custom Event as the trigger type (under Other).

    15.png
  8. Complete the Trigger Configuration settings.

    Add the following value to the event name field:

    view_item|add_to_cart|remove_from_cart|begin_checkout|add_payment_info|purchase|refund|view_cart|select_promotion|login|signup

    Note

    Select ‘Use regex matching’.

    16.png

    Give the trigger a name (eg. ‘GA4 - Ecommerce trigger‘) and click Save.

  9. Name the tag settings.

    The tag configuration should look like this:

    17.png

    Give it a name (eg. ‘GA4 - Configuration‘) and click Save.

  10. Create another Tag by clicking on the New button in the Tags component, and choose Google Analytics: GA4 event as the tag type.

    18.png
  11. Complete the Tag Configuration settings.

    Select the tag configuration you created in the previous steps as ‘Configuration Tag'.

    19.png

    For the ‘Event Name‘, click the add event name button next to the input field and select the variable with the name ‘Event‘.

    20.png
    21.png

    This will fill in the ‘Event Name‘ field with the value {{Event}}. Expand More Settings and check Send Ecommerce data.

    22.png
  12. Set a trigger by clicking on the Triggering tile and then select the previously created trigger.

    23.png
  13. Give the Tag Configuration a name and click Save.

  14. Finally, publish the tags.

    First, click the Submit button from the workspace page.

    24.png

    Indicate Publish and Create Version, add a version name and description, and click Publish.

    25.png
  15. Copy the script tags that need to be added to the Enviso Ticketing widget webpage.

    Navigate to Admin > Container > Install Google Tag Manager.

    26.png

    Copy the code that needs to be added to the <head> tag.

    27.png

Setup webpage hosting the Enviso Ticketing widget

  1. Open the webpage where the Enviso Ticketing Widget is hosted.

  2. Paste the script code (that was copied in step 15 of setting up Google Tag Manager) within the <head> tag.

  3. Publish the webpage.

When all steps are executed correctly, data from the Ticketing widget will become available in the Google Analytics reports after 24 to 48 hours.