StreamCart
Integration Guide

Google Tag Manager

Deploy StreamCart via GTM for version-controlled, zero-code deployment that works with any website or platform — no developer access required.

Custom HTML TagWorks with any siteVersion control

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

1

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.

2

Set the tag type to Custom HTML

Click Tag Configuration → Custom HTML. This allows you to paste any JavaScript snippet directly into GTM.

3

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.

4

Set the trigger to All Pages

Under Triggering, select All Pages (Page View). This fires the StreamCart script on every page of your site.

5

Name and save the tag

Give the tag a descriptive name (e.g., "StreamCart Embed"). Click Save.

6

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

GTM Custom HTML tag content
<!-- GTM: Custom HTML tag content -->
<script
  src="https://cdn.streamcart.it/embed.js"
  data-project-id="YOUR_PROJECT_ID"
  async>
</script>
Advanced: page-specific firing rules
// Advanced: Fire only on product pages
// In GTM: Create a Page Path trigger
// Trigger type: Page View
// Condition: Page Path → contains → /products/

// Or use a Regex match:
// Page Path → matches RegEx → /products/.*

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 →

Ready to turn your videos
into revenue?

Start converting more with video commerce

Start Your Free Trial

7-day free trial · No credit card · Cancel anytime