web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

How to customize the web site tracking javascript in order to track eCommerce site events

(0) ShareShare
ReportReport
Posted on by

Hi, is it possible to customize the Marketing Website Tracking script in order to catch ecommerce sites events, like:

- Visited Product Page

- Add To Basket

and then create a custom interaction that can be used to create a marketing segment?

Thank you.

I have the same question (0)
  • Zukasa Kyu Profile Picture
    135 on at

    Hi,

    You could try UTM with Google analytics.

    community.dynamics.com/.../

  • Community Member Profile Picture
    on at

    Hi Kyu,

    as far as I understand the UTM approach would bring data to Google Analytics, but our need is to have this data (ecommerce site viewed products, basket events, etc.) into Dynamics 365 Marketing, so we can use them in segmentation, customer journeys and email marketing.

    In your experience can we extend the default Dynamics 365 tracking script in order to track the above events?

    thank you.

  • Verified answer
    Petit Hibou Profile Picture
    on at

    Hi V Hacer,

    those two requirements can be implemented like:

    - create separate website tracking script just for product pages / put it to product page

    - on site where we do have "AddBasket" utilize the website click event with additional filtering based on link name

    but if there're custom tags (with custom dimensions) - i.e. you want to see event like AddBasket(Product=Office365 Subscription, Quantity=1) - Marketing doesn't have anything like that at the moment

    We'd like to better understand your scenario, so that we can consider adding it in the future releases.

    If you're interested to share (&discuss) please send me a message

    BR

    Elena

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 165

#2
ManoVerse Profile Picture

ManoVerse 161 Super User 2026 Season 1

#3
Zhilan Profile Picture

Zhilan 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans