Skip to main content

How to integrate Google Analytics (GA4) with Uniqode

Add Google Analytics to your Uniqode account to track your website traffic via QR Codes

Joy Arputha avatar
Written by Joy Arputha
Updated over a week ago

Google Analytics (GA4) is a web analytics platform by Google that helps you track traffic for your website.

Consider that you have connected GA with your website. You recently ran a QR Code campaign using Uniqode for an exclusive sale of your products. Integrating Uniqode with GA allows you to analyze and measure your performance within a single console without swapping between two different dashboards.

Prerequisites

  • Google Analytics administrator account

  • Uniqode Pro plan or above with admin privileges

  • At least one QR Code in the platform

Setting up GA4 tracking for your QR Codes

Adding a stream and copying your Measurement ID

  1. Sign in to Google Analytics as an administrator.

  2. In the bottom-left corner, click the gear icon.

  3. Under the Property column, click Data Streams.

  4. Add a stream for your Uniqode account

  5. Add STREAM NAME and add your QR Code domain (qrcodes.pro or your custom domain) as the STREAM URL

  6. Copy the MEASUREMENT ID

Integrating Google Analytics with Uniqode

  1. Sign in to your Uniqode account.

  2. Click Integrations in the left menu.

  3. Click Google Analytics

  4. Paste the copied GA4 Measurement ID

  5. Click Save.

Note: It may take up to 24 hours for the data to be reflected in the Google Analytics dashboard.

Viewing your QR Codes' performance on GA4 dashboard

Once your Uniqode account is integrated with GA4, you can track your QR Code performance in the Reports section. The Reports Snapshot provides an overview of your QR Code activity.

For detailed insights on specific QR Codes, navigate to Pages and Screens under Traffic in the Business Objectives section. You can identify each QR Code by its unique slug and analyze its performance.

Filtering events on Google Analytics

Users tracking their QR Code and Cards analytics via Google Analytics (GA) can filter their events and metrics using a standardized set of fields. These fields are sent as parameters with each tracked event, allowing for granular analysis and segmentation.

Common Fields for both QR Codes and Cards(DBC)

Field

Description

name

Name of the product (product: with its name)

id

Unique identifier for the product

product_type

Type/category of the product

organization_id

Identifier for the associated organization

email

Email of the user who created the product

url

Public URL associated with the product

created

Timestamp when the product was created

updated

Timestamp when the product was last updated

tags

Comma-separated tags associated with product

Standardized fields for QR Codes

Field

Description

Views

Number of times the QR Code is viewed

saves

Number of times the QR Codes was saved/bookmarked

Standardized fields for Cards (DBC)

Field

Description

scans

Number of times the card was scanned

creation_source

Origin of creation (e.g., Dashboard)

Event Naming Convention

Each event is triggered in GA using the following standardized naming format:

Uniqode {PRODUCTLINE - QR | DBC}: {Name of QR or DBC}

Examples:

  • Uniqode QR: SpringSale Flyer(name of QR Code)

  • Uniqode DBC: Jane Doe Digital Card (name of Digital Business Card)

This allows you to easily differentiate between events related to QR and DBC.

Setting Up Filters with Custom Dimensions in GA

To filter and analyze data using the fields mentioned above, you’ll need to create custom dimensions in Google Analytics. Here’s how:

Steps to Create Custom Dimensions in GA4

  1. Go to Google Analytics and open your property.

  2. Navigate to Admin (bottom-left gear icon).

  3. Under the Property column, click Custom definitions.

  4. Click on Create custom dimension.

  5. Fill in the following fields:

    • Dimension name: Use a meaningful name like Product Name, Organization ID, Product Type, etc.

    • Scope: Select Event.

    • Description: Optional but recommended.

    • Event parameter: This must match the parameter name (e.g., name, product_id, organization_id, etc.).

  6. Click Save.

  7. Repeat for all relevant fields you want to analyze.

Once set up, these dimensions will be available in reports, explorations, and custom dashboards.

Note: Google Analytics does not backfill data for newly created custom dimensions. This means any data collected before you set up the dimension will not appear under the custom dimension reports. Custom dimensions only start collecting data from the moment they are created, so be sure to set them up as early as possible.

Realtime Tracking

But you can view QR and Cards (DBC) Google analytics in real-time using the Realtime → Events section in GA. Look for your custom event names (e.g., Uniqode QR: Summer Campaign) to monitor activity as it happens.

Note: Google Analytics typically takes 24–48 hours for new event data and custom dimensions to appear in the standard event dashboards in GA. This is normal and expected behavior.

Did this answer your question?