Why Use GTM
Benefits of deploying via Google Tag Manager
Version control
Every GTM publish creates a versioned snapshot. Roll back to any previous configuration instantly if something goes wrong.
Enable / disable without deploys
Pause or enable StreamCart on your site without touching your codebase. Perfect for A/B testing or seasonal campaigns.
Works with any website
As long as GTM is installed on your site, StreamCart works — no platform-specific plugin or access to your codebase required.
Selective page loading
Use GTM triggers and firing rules to load StreamCart only on specific URL patterns, such as product detail pages or landing pages.
Requirements
- ✓An active Google Tag Manager account with a published container on your site
- ✓Publish permissions in the GTM container
- ✓A StreamCart account (free trial available)
Installation Guide
Connect StreamCart via GTM
Open Tags in Google Tag Manager
Log in to your Google Tag Manager account and open the container for your website. Navigate to Tags → New.
Set the tag type to Custom HTML
Click Tag Configuration → Custom HTML. This allows you to paste any JavaScript snippet directly into GTM.
Paste the StreamCart embed script
Paste the embed script into the HTML field. Replace YOUR_PROJECT_ID with your Project ID from the StreamCart dashboard under Settings → Project.
Set the trigger to All Pages
Under Triggering, select All Pages (Page View). This fires the StreamCart script on every page of your site.
Name and save the tag
Give the tag a descriptive name (e.g., "StreamCart Embed"). Click Save.
Submit and publish the container
Click Submit at the top of the GTM workspace, add a version description (e.g., "Add StreamCart embed"), and click Publish. StreamCart is now live on your site.
Snippets
Embed code and advanced triggers
Troubleshooting
Common issues and fixes
Tag fires in preview mode but not on the live site
Ensure you have published the container after previewing. The GTM preview mode only shows draft changes. Click Submit → Publish to deploy.
StreamCart widget loads but appears on incorrect pages
Review your trigger configuration. If you want to restrict to specific pages, change the trigger from All Pages to a Page Path trigger with the relevant URL pattern.
Script loads twice (duplicate tags)
Check for duplicate StreamCart tags in the GTM container. Open Tags and search for "StreamCart" to identify duplicates. Remove or pause the redundant tags.
Need help?
Our team can help you configure GTM tags, triggers, and firing rules for StreamCart.
Contact Support →