- Help Center
- Integrations
-
Getting Started
-
Configuration
- Targeting
- Split URL
- Product Testing
- Full Stack
- Experiment Management
- CSP Configuration
- Experiment Execution
- Reports
- Exit Popups
- GTM Integration
- Troubleshooting
- Performance Optimization
- Event-Triggered Changes
- Holdout Groups
- Split URL Pages
- URL Parameters
- DataLayer
- Menu Configurations
- Traffic Exclusion
- Experiment Scheduling
- Dynamic Element Changes
- Price Targeting
- Experience Scheduling
- Privacy
- Hash Changes
- Async Tracking
- Selective Installation
- CSS Selectors
- Vue.js Integration
- Page Content
- Multipage Split URL
- Organic Traffic
- Visual Editor
- Server-Side Testing
- Traffic Bucketing
- GDPR Warnings
- Statistical Confidence
- Browser Privacy
- Query Parameters
- Embedded Videos
- Tracking Code Execution
- Simultaneous Experiments
- Tags
- Deployments
- Disable Testing
- Locations
- Programmatic Bucketting
- Query Parameter Handling
- Convert Library
- Variation Previews
- Experiment Editing
- Opt-Out Script
- Data Reset
- Body Hiding
- Visit-Specific Variations
- Variation Styling
- Preview Issues
- Variation Editing
- Full-Site Testing
- Blinking Variations
- Cross-Domain Cookies
- Regex Support
- Conversion Tracking
- SPA Testing
- Project Setup
- Cross-Domain Tracking
- Geo-Targeting
- Analytics Tools
- Campaign Tags
- Previewing
- IDs
- Query String Targeting
- Bounce Rate Goals
- Bot Filtering
- Query String Variables
- Custom Audiences
- Redirects
- Baseline
- Tracking Code Location
- Secure Cookies
- AngularJS
- Cloudflare
- Code Installation
-
Track Goals
- Form Tracking
- Cookie Management
- iFrame Click Tracking
- Performance Optimization
- Revenue Tracking
- Interaction Goals
- Form Submissions
- Advanced Goals
- Lazy Loading
- Multi-Conversions
- URL Parameters
- Bounce Rate Goals
- DataLayer Integration
- Scroll Depth
- Social Interactions
- Page Views
- Marketo Forms
- Feature Analysis
- AJAX Forms
- Revenue Tracking via GTM
- Order Outliers
- Cumulative Revenue
- Goal Templates
- Adding Revenue Goals
- JS-Based Goals
- Goal Basics
- Google Analytics Goals
- Social Sharing
- Dynamic Goals
- Typeform Integration
-
Target Visitors
- Geolocation
- Interaction Goals
- Goal-Based Targeting
- Weather Targeting
- Cookie-Based Targeting
- Page Visits
- Audience Management
- Audience Segmentation
- Experiment Targeting
- Advanced Audience Creation
- Audience Templates
- Audience Creation
- Data Layer Integration
- Manual Activation
- JavaScript Conditions
- Device Targeting
- Language Targeting
- IP-Based Exclusion
- Visitor Management
- Page Tagging
- Cookies
-
Troubleshooting
- Google Warnings
- Visual Editor
- HTTPS Content
- Logs
- Support Options
- Bootstrap
- Cookie Blocking
- Change History
- Mobile Debugging
- AdWords
- Bot Exclusion
- Domain Issues
- Cloudflare Issues
- Monitoring
- Cloaking Penalties
- Goal Editor Issues
- Variations
- Snippet Performance
- Changes Not Saved
- Blocked Visual Editor
- Goal Testing
- Visual Editor Browsing
- Experiment Issues
- Installation Verification
- Data Leak Prevention
- Usage Limits
- Experiment Previews
- GA4 Revenue
- Chrome Debugger Logs
- SPA Errors
- Checkout JSON Error
-
Analyze Results
-
Integrations
- Google Analytics
- Cookie Consent Platforms
- Microsoft Clarity
- Plausible
- Marketo
- HubSpot
- Tealium
- Smartlook
- Klaviyo
- Salesforce CRM
- FullStory
- Snowplow Analytics
- Webflow
- GA4 Roles
- Amplitude
- Segment
- React
- BigCommerce
- WooCommerce
- Active Campaign
- Google Tag Manager
- Mixpanel
- Zapier
- Inspectlet
- Crazy Egg
- LanderApp
- Unbounce
- Instapage
- Drupal
- PrestaShop
- Magento
- Roistat
- Piano Analytics
- Heap Analytics
- Kissmetrics
- Mouseflow
- Adobe Analytics
- Clicky
-
Account Management
-
Developers
-
What's New
-
Common Questions
-
Shopify
How to Integrate Convert into Salesforce Commerce Cloud?
This guide provides a step-by-step approach to embedding the advanced tracking script and mapping variables to capture specific user interactions and data effectively.
Enhance your A/B testing and personalization efforts by integrating Convert's advanced tracking code into your Salesforce Commerce Cloud site.
Prerequisites
- Administrative access to Salesforce Commerce Cloud Business Manager.
- Familiarity with editing ISML templates.
- Access to Salesforce Commerce Cloud documentation for referencing data object mappings.
Step 1: Locate the Template
Identify the ISML template responsible for the <head>
tag across your site pages. Typically, this is the header.isml
template, which serves as the global template for the head section.
Step 2: Edit the Template and Map Variables
-
Access the Template: Navigate to the
header.isml
template within your development environment or via Business Manager atAdministration > Sites > Manage Sites > Your Site > Development > Templates
. -
Insert and Customize the Tracking Code: Place the advanced tracking code within the
<head>
section. Customize the variables by mapping them to Salesforce Commerce Cloud data objects, as shown below. Be sure to reference the official Salesforce Commerce Cloud documentation to ensure correct mappings:htmlCopy code<!-- begin Convert Experiences code -->
<script type="text/javascript">
// Example mappings of Convert variables to Salesforce Commerce Cloud data objects
var _conv_page_type = "home"; // Dynamically set based on SFCC page type
var _conv_category_id = "${CurrentCategory.ID}"; // Verify against SFCC documentation
var _conv_category_name = "${CurrentCategory.DisplayName}"; // Verify against SFCC documentation
var _conv_product_sku = "${CurrentProduct.SKU}"; // Verify against SFCC documentation
var _conv_product_name = "${CurrentProduct.Name}"; // Verify against SFCC documentation
var _conv_product_price = "${CurrentProduct.Price}"; // Verify against SFCC documentation
var _conv_customer_id = "${CurrentCustomer.ID}"; // Verify against SFCC documentation
var _conv_custom_v1 = "additional info"; // Custom variable for extra data
var _conv_custom_v2 = ""; // Additional custom variable
var _conv_custom_v3 = ""; // Additional custom variable
var _conv_custom_v4 = ""; // Additional custom variable
</script>
<script type="text/javascript" src="//cdn-4.convertexperiments.com/v1/js/xxxxxx-yyyyyy.js"></script>
<!-- end Convert Experiences code -->Replace the
xxxxxx-yyyyyy
with the numbers corresponding to your Convert project tracking code.
Step 3: Verify Installation
To confirm that the Convert tracking code has been installed correctly, please refer to the following resource:
Conclusion
Embedding Convert's advanced tracking code directly into your Salesforce Commerce Cloud templates allows for detailed analytics on user behavior, enhancing personalization and testing strategies. This setup ensures that data is accurately tracked and leveraged for impactful experiments and optimized user experiences. To access the latest Salesforce Commerce Cloud documentation for accurate data object mappings, visit the Salesforce help portal or access the developer documentation section within your Salesforce account.