How To Setup Ecommerce & Purchase Tracking In Microsoft Clarity

May 30, 2024 at 10:39:13 AM

TL;DR New guide explains how to set up e-commerce and purchase tracking in Microsoft Clarity. It highlights the importance of tracking transactions to improve user experience and identify friction points. The guide details using "Smart Events" and "API Events" for accurate tracking, especially for non-Shopify users. It also covers using "Custom Tags" to add context and enhance data collection, and provides a downloadable GTM template for easier setup.

How To Setup Ecommerce & Purchase Tracking In Microsoft Clarity

E-commerce transactions are crucial for any online store, and tracking these transactions using Microsoft Clarity can provide valuable insights. This guide explains how to set up e-commerce and purchase tracking in Microsoft Clarity.

Importance of Tracking Purchases

Tracking purchases allows you to:

  • Segment sessions with and without purchases.
  • Investigate user experience and identify friction points.
  • Provide more context to Microsoft Clarity's AI insights.

Tracking Purchases in Microsoft Clarity

While the "E-commerce Insights" feature is available for Shopify-integrated Clarity projects, other e-commerce actions can still be tracked manually.

Manual E-commerce & Transaction Tracking

Using Smart Events

  • Auto Events: Automatically track actions but may not accurately represent successful transactions.
  • API Events: Recommended for accurate tracking of successful purchases.
<script>
window.clarity("event", "purchase");
</script>

This can be implemented using Google Tag Manager or Piwik Pro Tag Manager.

Identifying Trackable Actions

Trackable actions include:

  • Viewing an item
  • Adding to cart
  • Viewing the cart
  • Beginning checkout
  • Adding payment information
  • Adding shipping details
  • Completing a purchase

Customizing Event Tracking Code

Adjust the event name for specific e-commerce actions.

<script>
window.clarity("event", "{{e-commerce action}}");
</script>

Using Custom Tags

Custom Tags add valuable context to the data collected.

<script>
clarity("set", "transactionID", "{{your order ID}}");
</script>

Examples of Custom Tags:

  • PageType: Enhance content grouping.
  • PurchaseQTY: Track product quantity.
  • CustomerType: Differentiate between first-time and returning customers.
  • AppliesCouponCode: Track coupon usage.
  • SpendCategory: Segment transactions by spending range.
  • ConversionType: Identify specific e-commerce actions.

Utilizing Collected E-commerce Data

  • Create filters using Smart Events and Custom Tags.
  • Save filters as segments for easy reference.
  • Use e-commerce data with Microsoft error tracking to identify JavaScript errors during purchases.

Shopify Integration

For Shopify users, the native integration tracks purchases and provides detailed e-commerce insights, such as Checkout Abandonment reports.

Closing Remarks

Track e-commerce actions and critical checkout errors to understand their impact on revenue and conversions. Manual setup of e-commerce tracking is recommended, as well as over-relying on Auto Events.

Q&A

Have more questions on this topic? Ask our AI assistant for in-depth insights.

The Only Digital Marketing Feed You'll Ever Need.

Stay informed your way. Tailored updates when and how you want them. 100% Free.

10,000+ Users

500+ Sources

1000+ Tools

Or

Related Posts

Microsoft Clarity Introduces Cookie Consent Requirements for European Markets

Microsoft Clarity Introduces Cookie Consent Requirements for European Markets

Microsoft Clarity
Microsoft Clarity

Official Source

Official Source

Microsoft Clarity is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Microsoft Clarity Announces Integration with Google Ads

Microsoft Clarity Announces Integration with Google Ads

Josh Silverbauer
Josh Silverbauer

Top Creator

Top Analytics Creator

Josh Silverbauer is a Top Analytics Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Analytics Creator
Tired of spending too much time creating audits for your clients?

Tired of spending too much time creating audits for your clients?

Featured
Clarity SDK 3.0 Released More Flexibility, Better Control for In-App Analytics

Clarity SDK 3.0 Released More Flexibility, Better Control for In-App Analytics

Microsoft Clarity
Microsoft Clarity

Official Source

Official Source

Microsoft Clarity is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Microsoft Clarity Announces Enhanced Integration with Wix

Microsoft Clarity Announces Enhanced Integration with Wix

Microsoft Clarity
Microsoft Clarity

Official Source

Official Source

Microsoft Clarity is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Microsoft Clarity Enhances Integration with WordPress for Better User Insights

Microsoft Clarity Enhances Integration with WordPress for Better User Insights

Microsoft Clarity
Microsoft Clarity

Official Source

Official Source

Microsoft Clarity is a Official Source. The source has been verified by Swipe Insight team.

Official Source
Microsoft Clarity Enhances Screenshot Navigation with Streamlined Selector

Microsoft Clarity Enhances Screenshot Navigation with Streamlined Selector

Josh Silverbauer
Josh Silverbauer

Top Creator

Top Analytics Creator

Josh Silverbauer is a Top Analytics Creator. Part of Swipe Insight Select, a curated list of top creators.

Top Analytics Creator
Microsoft Clarity's Full Feature Integration Now Available in Webflow

Microsoft Clarity's Full Feature Integration Now Available in Webflow

Microsoft Clarity
Microsoft Clarity

Official Source

Official Source

Microsoft Clarity is a Official Source. The source has been verified by Swipe Insight team.

Official Source

Related Tools

Marketing Auditor logo

Marketing Auditor

Verified Tool

Verified Tool

Marketing Auditor is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Automated audits for Google Ads and Analytics.

Get Featured Here

Showcase your tool in this list.

Contact Us
Microsoft Clarity logo

Microsoft Clarity

Verified Tool

Verified Tool

Microsoft Clarity is a Verified Tool. Want to get this badge? Contact us.

Verified Tool

Free heatmaps and session recordings for websites

Analytics
Fullsession logo

Fullsession

Optimize user engagement with precision analytics

Analytics
Fullstory logo

Fullstory

Understand user behavior to improve experiences

Analytics
Hotjar logo

Hotjar

Understand user behavior with heatmaps and recordings

Analytics