Add a rule for the purchase event in Experience Platform tags
- Topics:
- Tags
CREATED FOR:
- Beginner
- Developer
This video shows how to use the product string extension in Experience Platform Launch to track purchases on your site, resulting in the Revenue, Orders, and Units metrics in your analysis.
Transcript
Hey everybody, this is Doug. In this video, I want to talk to you about adding a launch rule for the purchase event if you are a retail site. So like the other video about basic retail variables, you only need this video if you are a retail site, and if you’re not a retail site, you can move on. If you are a retail site, you’re going to want to watch this. So in this video, again, we’re going to talk about creating a rule for the purchase event and as mentioned, we already did a video about the other basic retail variables, in other words, doing a product view, a cart add, a checkout, or any of the other steps that you want to do there, and I might add that if you wanted to add things for like, shipping or billing or other steps in your checkout process but we don’t really have a pre-named variable like scCheckout or scAdd, then you can always use custom events, like I could use event5 for entered shipping information or something like that. So you can use any number of custom events for additional steps, but we do have kind of these pre-named ones there for your using for commonly tracked steps, okay. So in this case again, purchase is what we’re after. So if we go back over to launch, you’ll see here that I’m in the Data Elements section, so I’ve opened my property, I’m in Data Elements because I did just have to create a couple of extra data elements, and the ones that I created, especially to use for the purchase event, are the Product Total Revenue and the Product Total Units. And so these are going to be pulled from the data layer, and you’ll see here that I have productTotalRevenue right here and productTotalUnits, but again, as always, if you don’t have a data layer with these items in it, then you can pull that information from wherever you have it on your site. I’m assuming that if you have a retail site then you know how many items they bought and you know the revenue for those items. In this case again, it is the total revenue for these items, so if it’s 2,600 here, if I were buying two tuxes, 'cause you never know when you’re going to need an extra one, then of course, you would just multiply this by two. So you’d have 5,200 and that would be the revenue you’re putting in instead of 2,600. So you don’t put the individual price, you put the total price for the number of items of that product that you bought.
So that was step one to make sure that you have that in a data element. Now let’s go to our rules and create the rule for this. So you can see we have our other steps in here, I’ve got my prod view at DOM Ready 50, we’ve got our add to cart and our checkout all happening at DOM Ready 50, so that they all get set, these variables, before the default page load rule runs at number 60. So just in order after these items, and it sends in the beacon, okay. So let’s add another rule.
We’ll call it Purchase- DOM Ready 50. The event is, again, we just said it, DOM Ready 50, is the order, save that. So that’s when it happens on the page, again, at the bottom of the page, but it only happens when it’s a purchase, so we need to look again at our source and see that the product event says purchase. I’m going to copy that.
So we go into our condition type, use a value comparison, very common for us to use that if we’re pulling data out of a data layer into a data element, so we can now see if our data element, product event, equals purchase, paste it in. This will only run then on that order confirmation page where that value is there, okay, keep the changes. Now what do we do again when that all happens? We do our actions and we’re going to set the product variable by using this product string extension, just like the other ones, Setting s.products, this time we’re going to say it’s for a purchase, and you might remember in other rules, if we said that it was for, say, a prod view, it only asks us for the product. And so we say it’s a purchase because it knows that it needs more information this time. So now we can go say the product ID or name is going to be pulled from the Product ID data element.
The variable for product quantity Product Total Units.
And total product price, Product Total Revenue right there.
And now it knows how to build s.product, so we’ll keep that.
Now of course one more thing, we need to add another action which is the analytics extension, and Set Variables, and set the purchase event. So events, purchase, where are you, there you are, purchase, and that’s it.
Keep.
And now we are setting the product string, we’re setting the purchase event, we’re only doing it when it’s the purchase confirmation page, and we’re good to go because it’s happening on DOM Ready 50 before the beacon gets sent in.
Save it.
It builds a library, says we’re good, now we can go back to our site and we can actually run through this, so let’s go back and start over, we’ll go to the tuxes, and we’re going to see how many we have in our cart here, we have two of them so let’s empty that and start over. So we’ll go back to our tuxes again, let’s open up the debugger, and clear it, put this over here, okay, now where I’m on this page we see that we have a prod view, we add it to cart, we get our cart add, we checkout we get our checkout, jump over and see our checkout with scCheckout in the event1 for the page view, and then we go through the shipping, the billing, and those are just regular pages with only just the page event. Then when we purchase that and we’re on our purchase confirmation page, now we should have all the extra stuff. So we have our events, so we have our purchase event, event1 for the page view, that’s great, and now we have our item purchased which is 201233 semicolon 1 item and semicolon and $2,600, so we have our product string now that we need for our purchase event, and that can go in and fill all the right reports and now we are good to go for our purchase event.
Analytics
- Analytics tutorials
- Introduction to Analytics
- What is analytics
- What Can Adobe Analytics Do For Me?
- How Adobe Analysis Workspace Can Change Your Business
- It’s More Than Data. It’s Customer Intelligence
- Adobe Sensei and Adobe Analytics
- Customer Use Case - ServiceNow
- Customer Use Case - Accent Group
- Customer Use Case - The Home Depot
- Summit 2019 Super Session - Travel and Hospitality
- Summit 2019 Super Session - Retail
- Summit 2019 Super Session - High Tech
- Strategy & thought leadership
- Transitioning from other platforms
- Analytics Basics
- Customizing the UI
- Getting Help
- Analysis Workspace
- Analysis Workspace Basics
- Analysis Workspace quick intro
- Analysis Workspace overview
- Navigate the new landing page
- Start your analysis with a pre-built report
- Building a Workspace project from scratch
- Create and manage custom templates in Analysis Workspace
- Understanding how data gets into your Analysis Workspace project
- Foundational metrics in Adobe Analytics
- Component management in Analysis Workspace
- Selecting a report suite in Analysis Workspace
- View Analysis Workspace performance metrics
- Create bot reports
- Tips and Tricks
- Navigating Workspace Projects
- Data Dictionary in Analysis Workspace
- Starting your first project
- Training tutorial template
- Use folders in Analysis Workspace
- Copy and insert panels and visualizations
- Create a table of contents
- Right-click for Workspace efficiency
- Keyboard shortcuts
- Annotations
- View density
- Use filters
- Use multi-select drop-down filters
- Real-time reports
- Using Panels
- Using Tables, Visualizations, and Panels in Analysis Workspace
- Quick Insights Panel in Analysis Workspace
- Using the Attribution IQ Panel
- Media Concurrent Viewers Panel in Analysis Workspace
- Media Playback Time Spent Panel
- Using Drop-down Filters
- Using Panels to Organize your Analysis Workspace Projects
- Choose segments for a panel
- Multiple Report Suites in Analysis Workspace
- Next/Previous and Page Summary Workspace Panels & Reports
- Understanding attribution panel and lookback windows
- Building Freeform Tables
- Understand your data–freeform tables
- Use the left rail to build freeform tables
- Easy drag and drop to blank projects
- Work with dimensions in a freeform table
- Work with metrics in a freeform table
- Row and column settings in freeform tables
- Freeform table totals
- Use the freeform table builder
- Right-click for workspace efficiency
- Reorder static rows
- Use Attribution IQ in freeform tables
- Cross-sell analysis
- Freeform table filters
- Time-parting dimensions
- Visualizations
- Visualization types and overview
- Visualization use cases
- Data visualization playbook
- Getting data into visualizations
- Using component drop-downs in Workspace
- Area and area stacked visualizations
- Bar and bar stacked visualizations
- Bullet graph visualization
- Donut visualization
- Histogram visualization
- Unlocking insights with histograms
- Line visualization
- Combo charts
- Adding trend lines to line visualizations
- Map visualization
- Summary number and summary change visualizations
- Key metric summary visualization
- Text visualization
- More than words - Using text visualizations and descriptions
- Scatterplot visualization
- Treemap visualization
- Venn diagram visualization
- Use the cumulative average function to apply metric smoothing
- Flexible layouts
- Changing the scale/axis on visualizations
- Dimension-graph live linking
- Set the granularity for visualizations
- Link inside or outside of your project
- Customize visualization legends
- 100% stacked visualizations
- Table and visualization data source settings
- Build a time-parting heatmap
- Analyzing Customer Journeys
- Applying Segments
- Apply segments to your Analysis Workspace project
- Apply ad hoc segments
- Use different Attribution IQ models with segments
- Choose segments for a panel
- Use segments as Dimensions in Analysis Workspace
- Use segments to limit data in Analysis Workspace
- Quick segments in Analysis Workspace
- Building Customer Journey Segments
- Building Customer Journey Segments - Part 2
- Metrics
- Dimensions
- Calendar and Date Ranges
- Curate and Share Projects
- Attribution IQ
- Using Cross-tab Analysis to Explore Basic Marketing Attribution
- Adding side-by-side comparisons of Attribution IQ Models
- Attribution IQ in Calculated Metrics
- Using Attribution IQ in Freeform Tables
- Using the Attribution IQ Panel
- Using different Attribution IQ models with segments
- Algorithmic Model in Attribution IQ
- Custom Look-back Windows in Attribution IQ
- Cohort Analysis
- Cohort Analysis in Analysis Workspace
- Understand your data–Cohort Tables
- Overview of Cohort Tables
- Cohort Table Settings
- Churn Analysis with Cohort Tables
- Cohort Analysis Using Any Dimension
- Latency Analysis with Cohort Tables
- Calculate Rolling Retention in Cohort Tables
- Use Cohort Analysis to Understand Customer Behavior
- Voice Analytics
- How to Manage and Track Your Voice Assistant App Data
- Understand Differences Across Voice-Enabled Devices
- Finding Opportunities To Increase Engagement for Voice Apps
- Reducing Error Rates and Improving Success Rates in Your Voice App
- Understand User Behavior on Voice Assistants
- Understanding the User’s Voice Journey
- Analysis Workspace Basics
- Administration
- Key Admin Skills
- Creating an empowered community
- Simplify and spend less time training users
- Getting the Right People on Your Analytics Team
- Gaining a seat at the table
- Telling impactful stories with data
- Translating Adobe Analytics technical language in a non-technical way
- Working cross-functionally
- Are you asking the right questions?
- Admin Tips and Best Practices
- Download the implementation playbook
- Audit your data dictionary
- Create standardized naming conventions
- Create standardized code templates
- Create basic videos and training
- Create an internal Adobe Analytics site
- Use a global report suite
- Create a news & announcements project
- Drive success with executive summary dashboards
- Create Operational Dashboards
- Company Settings
- User Management
- Manage Report Suites
- How to Configure General Account Settings
- Customize Calendar Settings
- Configure Paid Search Detection
- Set up marketing channels
- Create marketing channel processing rules
- Manipulating incoming data with Processing Rules
- Configuring Traffic Variables (props)
- Configure traffic classifications
- Configure hierarchy variables
- Configuring Variables in the Admin Console
- Configure conversion classifications
- Configuring List Variables
- Configure Finding Methods
- Set Internal URL Filters
- Configuring Zip and Postal Code Settings
- Enable the Timestamp Optional setting
- Configure bot rules in Analytics
- Data Governance and GDPR
- Traffic Management
- Logs
- Key Admin Skills
- Implementation
- Implementation Basics
- Experience Platform Tags
- Implement Experience Cloud solutions in websites using Tags
- Basic configuration of the Analytics extension
- Configure library management in the Analytics extension
- Configure general settings in the Analytics extension
- Configure global variable settings in the Analytics extension
- Use custom code in the Analytics extension
- Use a data layer to set variables
- Use doPlugins and implementation plug-ins
- Configure easy download link tracking
- Configure easy exit link tracking
- Prepare Tags for your Analytics implementation
- Create data elements for the Analytics implementation
- Create a global page load rule
- Validate the global page load rule
- Create rules for special pages
- Create rules for success events
- Publish Tags libraries to stage and production
- Using JavaScript
- Components
- Segmentation
- Segment builder overview
- Finding and creating segments
- Rolling date ranges in segments
- Segment comparison in Analysis Workspace
- Segment containers
- Segment management and sharing
- Applying segments in Analysis Workspace
- Using segments as dimensions
- Using segments to limit data
- Differences between the segment builder and quick segments
- Sequential segmentation
- Before/After sequences in sequential segmentation
- Segmentation on distinct dimension counts
- Dimension models in segmentation
- Use ‘equals any of’ in segmentation
- Analytics Insider Webinar - Customer Segmentation Strategies
- Now just wait a segment… Using segmentation to discover new insights
- Calculated Metrics
- Calculated metric builder overview
- Calculated metrics - implementation-less metrics
- Calculated metrics - segmented metrics
- Calculated metrics - functions
- Approximate count distinct function in calculated metrics
- Quick calculated metrics in Analysis Workspace
- Manage your calculated metrics
- Attribution IQ in calculated metrics
- Use dimensions in calculated metrics
- Take your data analysis to the next level with calculated metrics
- Classifications
- Virtual Report Suites
- Activity Map
- Segmentation
- Additional Tools
- Exporting
- From the UI
- Data Warehouse
- Data Feeds
- Report Builder
- Upgrade and reschedule workbooks
- Add Segments to Multiple Requests at Once in Report Builder
- Anomaly Detection in Report Builder
- Edit Metrics across Requests
- Using Report Builder to learn the Adobe Analytics API
- Get started with Report Builder
- Schedule a Report Builder request
- Use Report Builder advanced delivery options for Power BI
- Integrations
- Experience Cloud
- Audience Manager
- Target
- Adobe Advertising DSP
- Configuring Advertising Analytics
- Implementing tracking templates into search engines
- Introduction to the Adobe Advertising DSP integration
- Create a Pre-launch campaign analysis
- Report on Advertising DSP marketing channels
- Create Analytics site journey profiles
- Create Analytics segments for activation and reporting
- Create Advertising DSP alerts with Adobe Analytics
- Create Analytics custom metrics with Advertising DSP data
- Create Advertising DSP site entry reports
- Create Advertising DSP dashboards
- Ad Hoc Analytics
- Power BI
- Magento
- Data Science
- Vertical-Specific
- Media Analytics
- Mobile App Analytics
- APIs
- Analysis Use Cases