AXL Knowledge Base

Google Analytics App

~3 min read Section: Apps

Connect a Google Analytics 4 web stream to selected AXL websites. AXL can send page views, form submissions, registrations, cart activity, and order events to that stream.

You will need the stream’s Measurement ID and a private Measurement Protocol API secret. Use the event settings to choose which supported AXL actions are sent to Google Analytics.

Creating a Data Stream in Google Analytics

Before you begin, open Google Analytics, sign in, and choose the account and property for your website. Create them first if needed.

Google Analytics information page with a Go to Analytics button.

Open Admin in Google Analytics.

Google Analytics navigation with Admin highlighted at the bottom of the menu.

In Google Analytics Admin, open Data collection and modification → Data streams.

Google Analytics Admin page with Data streams selected under Data collection and modification.

Click Add stream and choose Web for your AXL website.

Add stream menu in Google Analytics with the Web option visible.

Enter the URL of your main site, for example "example.com", and a name for the stream, such as "Northstar Academy (Web Stream)".
Below, you can turn enhanced measurement on or off. It automatically collects page views and other events. After you create the data stream, you can turn off individual enhanced measurement events you don't need, so we recommend leaving it on for now.
Click "Create Stream".

Set up data stream form with Website URL, Stream name, and Enhanced measurement settings.

Click the name of the new stream to open its settings.

Google Analytics Data streams list with a created web stream ready to open.

Copy the "Measurement ID" for the stream. You’ll need it in Connecting to AXL below.

Google Analytics Web stream details with the Measurement ID copy control highlighted.

Next, open the "Measurement Protocol API secrets" tab.

Web stream details with Measurement Protocol API secrets highlighted.

Click Create, enter a nickname for the secret, and click Create again. See Google’s Measurement Protocol API-secret instructions if the screen differs.

Measurement Protocol API secrets page with the Create button highlighted above an empty list.

Copy the Secret value for this stream. Keep it private and paste it only into AXL’s Token field; do not add it to public page code. You’ll need it in Connecting to AXL below.

Created Measurement Protocol API secret with its value blurred and copy icon highlighted.

Connecting to AXL

Now open AXL and go to Settings → Apps. The "All Apps" tab lists every app you can connect to your account.

Settings → Apps → All Apps catalog with the Google Analytics card and its Connect button.

On the "Google Analytics" card, click "Connect".

Google Analytics card in the app catalog with Connect.

In the window that opens, fill in the fields:

  1. Title. Enter a name for the app so it's easy to find. This title is just for you.

  2. Token. Paste the "Secret value" you copied in Creating a Data Stream in Google Analytics above.

  3. Measurement ID. Paste the "Measurement ID" you copied in Creating a Data Stream in Google Analytics above.

  4. Websites. Select one or more websites from the list. To learn more about creating a website in AXL, read "Sites".

Click "Connect".

Google Analytics connection form: title Northstar GA4, Token, Measurement ID, the Northstar website and event settings such as generate_lead and purchase.

The Google Analytics app appears on the "Connected" tab.

Apps, Connected tab: the Northstar Analytics Google Analytics connection with Manage and Delete buttons.

To delete the app, click "Delete" on its card.

Connected Northstar Analytics card with the Delete button.

To see deleted apps, check the "Show deleted" box. You can restore a deleted app.

App Settings

To continue setting up the app, click "Manage".

Connected Northstar Analytics card with the Manage button.

On the page that opens, you can change the app's settings in the Settings card.

Review the event settings before saving. The built-in mappings cover form/quiz submissions (generate_lead), webinar registration (sign_up), order creation (begin_checkout), paid orders (purchase), additions to the cart (add_to_cart), and site page views (page_view). Expand Advanced parameters for the event you need to customize; Auto-filled fields explains the values AXL supplies. Click Save after making changes, then reopen the settings to check them. Connecting the app does not by itself prove that events have reached Google Analytics; verify the intended events in your Analytics property.

Northstar Analytics settings: Title, masked Token, Measurement ID, the selected website and Event Settings with generate_lead, sign_up and begin_checkout turned on.