Skip to main content
All CollectionsIntegrationsInbox
Getting Started with Tracking Events in Google Analytics and Google Tag Manager
Getting Started with Tracking Events in Google Analytics and Google Tag Manager

This guide will help you set up event tracking for Proposales using Google Analytics 4 (GA4) and Google Tag Manager (GTM). With our new GTM container, the setup is simpler than ever, and you can get started quickly by following these steps.

Updated over a week ago

Before getting started, be sure to activate our Inbox Widget as well as the Google Tag Manager (GTM) integration here (also be sure to add your container ID).

Tracking events in Google Analytics and Google Tag Manager

Make sure you have your Google Analytics 4 property set up and configured correctly. If you need assistance with this, refer to the official GA4 Setup Guide.

Step 1: Import and setup the GTM Container

To simplify the setup, we’ve prepared a pre-configured GTM container that you can import directly into your GTM account.

How to Import the Container:

  1. Download the Container File:

  2. Go to Google Tag Manager:

    • Log in to your GTM account and select the workspace where you want to set up Proposales tracking.

  3. Import the Container:

    • In the GTM interface, click on Admin.

    • Under Container, select Import Container.

    • Choose the proposales_tracking.json file you just downloaded.

    • Set Workspace to your desired workspace and select Merge to keep existing settings intact.

  • Update the Measurement ID:

    • After importing, locate the Proposales (to Google Analytics) tag.

    • Enter your GA4 Measurement ID (you can find this in your GA4 property under Admin > Data Streams > Web).

That's it! 🥳 You are ready to receive events.

Configure requestID as userID (Optional)

If you wish to track unique users across sessions, you can set requestID as a userID in GA4:

  1. Go to GA4 Admin and under Data Streams, select your web stream.

  2. Click on Configure Tag Settings > Configure Your Domains and ensure that the cookie settings allow tracking across subdomains if your Proposales widget is embedded in multiple places.

  3. Edit the GA4 Configuration Tag in GTM and add a Field to Set:

    • Field Name: user_id

    • Value: {{Proposales - Request ID}}

  4. This will tie the requestID to the user_id field, enabling better cross-session tracking.

Step 2: Verify Your Setup

Preview Mode in GTM:

  1. Click the Preview-button in GTM and enter https://secure.proposales.com/inbox/ as the URL.

  2. Create a Proposal from a request (tip: create a test-request before this step)

  3. Verify that events are captured in the Preview mode and are pushing the appropriate data to the dataLayer.

Understanding the Variables

The container includes several user-defined variables that extract specific data from the events. Here’s a breakdown of what each variable captures:

Variable Name

Description

Proposales - Company ID

The company identifier to track which company the proposal is associated with.

Proposales - Request ID

The unique ID assigned to the Request for Proposal (RFP).

Proposales - Proposal ID

A UUID specific to each proposal created within Proposales.

Proposales - Transaction Value

The total transaction value (including tax) for proposals.

Proposales - Tax Amount

The amount of tax included in the proposal value.

Proposales - Currency

The currency used in the transaction (e.g., "SEK," "USD").

Proposales - Event Category

Used to group events under the "Proposales" category for easier tracking and analysis.

Proposales - Event Name

Describes the action of the event, such as "Proposal Accepted," "Proposal Viewed," etc.

Proposales - Ecommerce

Captures transaction_id, value, tax and currency

UTMs

Proposales - UTM Source

Captures UTM param from RFP (optional)

Proposales - UTM Medium

Captures UTM param from RFP (optional)

Proposales - UTM campaign

Captures UTM param from RFP (optional)

Proposales - UTM content

Captures UTM param from RFP (optional)

Proposales - UTM term

Captures UTM param from RFP (optional)

GAD/FB

Proposales - Fbclid

Captures Facebook click id from RFP (optional)

Proposales - Gad

Captures Google Adwords common custom param from RFP (optional)

Proposales - Gad Custom

Captures Gad extra param from RFP (optional)

Proposales - Gad Language

Captures Gad extra param from RFP (optional)

Proposales - Gad Network

Captures Gad extra param from RFP (optional)

Proposales - Param ID

Captures Gad extra param from RFP (optional)

Proposales - Platform

Captures Gad extra param from RFP (optional)

Proposales - Position

Captures Gad extra param from RFP (optional)

Proposales - URL ID

Captures Gad extra param from RFP (optional)

Proposales - Gad XID

Captures Gad extra param from RFP (optional)

Proposales - Gclid

Captures Google click id from RFP (optional)

Example of an Event

Here’s an example of a dataLayer push for a proposal accepted event. This is what the event will send:

{
event: "proposales_proposal_accepted",
eventCategory: "Proposales",
eventAction: "Proposal Accepted",
requestID: 69750,
proposalID: "103a6ee4-3c5a-4ead-9259-6320dbf229cd",
companyID: 44213434334,
ecommerce: {
transaction_id: "103a6ee4-3c5a-4ead-9259-6320dbf229cd",
value: 500.5,
tax: 81.53,
currency: "SEK"
}
utm_source: "Source", // All UTM params are retrieved from Proposal data
utm_medium: "Medium",
utm_campaign: "Campaign"
utm_content: "Content",
utm_term: "Term",
}

FAQs & Troubleshooting

Q: Why aren’t events showing up in GA4?

  • Ensure your GTM tags are set up correctly, and use Preview Mode to confirm that the tags fire without errors.

  • Double-check that your GA4 Measurement ID is correctly set in the GA4 Configuration Tag.

Q: Do I need to update my cookie policy or consent management?

  • Yes, if you are adding new tracking variables or events to your website via Proposales’ integration with Google Tag Manager or Google Analytics, it’s important to review and update your cookie policy and consent management system. For compliance, consult local regulations (e.g., GDPR, CCPA) or seek legal advice to ensure your policies align with the latest requirements.

Final Notes

By following this guide, you can easily set up event tracking for Proposales in Google Analytics using Google Tag Manager. The pre-configured container simplifies the process, but feel free to customize further as needed for your specific setup.

Did this answer your question?