Skip to main content

Web Marketing and Engagement Analytics

Analytics measures and reports the user traffic in your SmartRec store. 

Written by Samantha Postlethwaite

Check out the Apps tab to activate third-party analytics!

You can find out where visitors are coming from and what they looked at while in your SmartRec store by integrating third-party analytics (Google Analytics) and advertising platforms (Google Ads and Facebook Business Manager) in the Store>Store settings>Web Marketing subtab.

  • Add your Google Analytics Tracking ID to track your store's activity;

  • Integrate your Google Ads to track the performance of your search campaigns;

  • Track and re-target customers who access your SmartRec store; and

  • Track conversions (ex: sales) made through your Google Ads and/or Facebook campaigns.

To benefit from Google Analytics and Google Ads integration, you must have a Gmail account and activate a Google Analytics and/or a Google Ads campaign. For best results, embed your SmartRec store into your organization's website.

Google Analytics (GA4) Integration

Use Google Analytics 4 (GA4) to track how clients browse, register, and complete purchases in your SmartRec store. Once connected, GA4 events fire automatically — giving your organization visibility into which campaigns and channels drive conversions.

1. How it works

Amilia's SmartRec store sends GA4 events automatically through Google Tag Manager (GTM). These events flow into two GA4 properties at the same time: Amilia's internal property (for product analytics) and your organization's own GA4 property (for your reporting).

Because the store runs as a web view inside the Amilia app, the same events fire on both web and in-app — no additional setup is required.

Note: Administrator sessions are excluded from all events by design. Only client sessions produce data.

2. How to connect your GA4 property

To receive events in your own GA4 property, you need a Measurement ID from Google Analytics.

1. Sign in to Google Analytics and open your GA4 property.

2. Go to Admin > Data streams and select your web data stream.

3. Copy your Measurement ID (format: G-XXXXXXXXXX).

4. In SmartRec, go to Store > Store settings > Web Marketing.

5. Enter your Measurement ID and save.

Note: Without a Measurement ID, events still fire to Amilia's internal property — but not to yours.

3. Events sent by Amilia

Amilia fires the following events automatically. No additional configuration is required on your end.

Event

When it fires

page_view

A client visits any page on the SmartRec store

add_to_cart

A client adds an item to their cart

remove_from_cart

A client removes an item from their cart

begin_checkout

A client reaches checkout Step 1 with items in their cart

purchase

A client completes checkout (Step 4 — the confirmation page)

login

A client successfully logs in. Includes a method parameter: email or sso

sign_up

A client successfully creates a new account. Includes a method parameter: email or sso

GA4 also fires these default events automatically: click, scroll, session_start, first_visit, file_download, form_start, form_submit, view_search_result.

⚠️ Warning: The purchase event fires when the Step 4 confirmation page loads — not on a button click. The client must complete the full checkout flow for the event to fire.

⚠️ Warning: If a purchase event shows $0 revenue, currency data may be missing from the transaction.

What Amilia does not track:

• Activity inside the SmartRec back office

• view_item and add_to_wishlist events (not yet supported)

4. Cross-domain tracking

Most organizations have their own website (WordPress, Squarespace, etc.) that redirects users to their SmartRec store. Without cross-domain tracking, GA4 treats the website and the store as two separate sessions — and loses all source attribution in between.

🎗️ Note: The above applies regardless of whether your SmartRec store is embedded into your website as an iFrame or not.

4.1 Why it matters

Without cross-domain tracking, a client who clicks a Facebook ad, visits your website, then completes a purchase on your SmartRec store will appear in GA4 as direct traffic. The campaign that drove the conversion gets no credit.

With cross-domain tracking, the full journey is recorded as a single session. GA4 correctly attributes the purchase to the right source — so you can see exactly which campaigns and channels are driving registrations on your store.

4.2 How to set it up

Cross-domain tracking is configured in GA4 — Amilia cannot do this on your behalf. It takes under 5 minutes with GA4 admin access.

6. In GA4, go to Admin > Data streams and select your web data stream.

7. Open Configure tag settings, then select Configure your domains.

8. Add both domains: your website (e.g., yourorg.com) and amilia.com.

9. Save your changes.

10. To verify, use GA4 DebugView: click from your website to the store and confirm the session_id remains the same across both domains.

🎗️ Tip: See Google's cross-domain measurement guide for full instructions: https://support.google.com/analytics/answer/10071811

5. UTM parameters

If your website links directly to your SmartRec store, adding UTM parameters to those links is a simpler option for basic source attribution.

Example:

amilia.com/store/en/yourorg?utm_source=website&utm_medium=button&utm_campaign=fall-registration

UTM parameters work for first-click attribution, but they do not stitch sessions together. For full funnel analysis — from page views on your website through to checkout on your store — cross-domain tracking is required.

6. What Amilia manages vs. what you manage

Area

Amilia

Your organization

GTM container, tags, triggers, and variables

Manages

Firing store events (add_to_cart, purchase, login, etc.)

Manages

Filtering administrator sessions from events

Manages

Creating a GA4 property

Manages

Entering the GA4 Measurement ID in SmartRec

Manages

Cross-domain tracking configuration in GA4

Manages

UTM parameters on website links

Manages

GA4 reports, funnels, and conversion goals

Manages

Testing events with a non-admin account

Assists

Runs test

Troubleshooting missing or incorrect data

If GTM-related

If GA4-related

7. How to test your integration

Always test with a regular client account — not an administrator account. Administrator sessions are filtered and will not produce events.

What to test:

• Visit any page on the SmartRec store → expect page_view

• Add any item to the cart → expect add_to_cart

• Remove an item from the cart → expect remove_from_cart

• Proceed to checkout Step 1 → expect begin_checkout

• Complete the full checkout through Step 4 → expect purchase

• Log in using email and password → expect login with method: email

• Log in using SSO → expect login with method: sso

• Create a new client account → expect sign_up with the appropriate method

Test on both web (browser) and within the Amilia app. Both should produce identical events.

GTM Preview mode

Access from your Google Tag Manager workspace. Shows which tags fire and which data is sent — in real time, before data appears in GA4 reports.

GA4 DebugView

Found under Admin > DebugView in GA4. Shows live events from a tagged browser session using the GA4 Debugger Chrome extension. Ideal for confirming event names and data payloads.

8. Troubleshooting

Amilia investigates

• Events not appearing at all after a confirmed non-admin test

• Incorrect data in the event payload (wrong currency, missing item names, incorrect totals)

• GTM tag or trigger behavior that does not match this documentation

Your organization handles

• GA4 property setup and configuration (properties, data streams, conversion events, audiences)

• Cross-domain tracking setup in GA4

• Reports, funnels, and dashboards in GA4

• UTM parameters on website links

When escalating to Amilia support, always include

• Your GA4 Measurement ID (G-XXXXXXXXXX)

• The specific event that is not working

• A GA4 DebugView screenshot from a non-admin session

• Whether the issue occurs on web, in-app, or both

9. FAQ

What happens if I don't enter a Measurement ID?

Events still fire to Amilia's internal GA4 property. Your own GA4 property will not receive any data until a valid Measurement ID is saved in Store > Store settings > Web Marketing.

Does the integration work inside the Amilia app?

Yes. The SmartRec store runs as a web view inside the Amilia app, so the same events fire on both web and in-app — no separate setup is required.

Why does my purchase event show $0 revenue?

Currency data must be present for GA4 to display revenue. If the purchase event fires but shows $0, currency information is likely missing from the transaction. Contact Amilia support with a DebugView screenshot for investigation.

Can Amilia set up cross-domain tracking for me?

No. Cross-domain tracking is configured in your GA4 property, which Amilia does not have access to. See section 4.2 for step-by-step instructions, or refer to Google's cross-domain measurement guide.

Can Amilia build my GA4 reports, funnels, or conversion goals?

No. GA4 report and goal configuration is managed entirely within your GA4 property. For help, refer to Google's GA4 Help Center or consult a marketing agency.

Why are my own test sessions not showing up in GA4?

Administrator sessions are filtered out by design. Always test using a regular client account to generate events.

Google Ads Integration

Google Ads helps drive potential customers to your website by allowing you to purchase keywords that result in your business ad appearing when a user types your keywords (or related words) in the Google search field.

To integrate Google Ads into your SmartRec store and track visitors and sales that were made as a result of clicking on your ads, find the remarketing tag code and copy the variable google_conversion_id and the variable google_conversion_label.

Click here to learn how to find your Conversion ID and Label in your Google Ads account.

Facebook Integration 

If you're using a Facebook campaign to market your business, why not link it to your SmartRec store? A Facebook pixel code allows you to track conversions (ie: sales) from Facebook ads as well as collect data on users who've landed on your store page. The Facebook pixel also allows you to re-target ads to your visitors on Facebook or Instagram. You must activate the Facebook Ads Pixel in the Apps tab.

Simply paste your Facebook pixel code Id in the following field:

Purchase Conversion 

SmartRec can send invoice data to your Google Ads and/or Facebook campaigns. This means that conversions made as a direct result of clicking on your Google or Facebook ads will trigger SmartRec to send invoice totals to your Analytics account. This is a great way to know how much you are making from an ad versus how much you are spending.

👉 No other invoice data is provided other than purchase totals.

* Last updated in June 2025

You might also be interested in:

Did this answer your question?