Track Conversions in Magento
Tracking conversions in Magento involves setting up specific goals or events in your analytics platform to measure the success of actions taken by visitors on your site, such as purchases, sign-ups, or other key interactions. Here's how to track conversions in Magento using Google Analytics and Google Tag Manager:
Steps to Track Conversions in Magento
1. Setting Up Google Analytics Goals
Step 1: Log in to Google Analytics
- Go to the Google Analytics website and sign in with your Google account.
- Select the property (website) you want to set up goals for.
Step 2: Navigate to Goals
- In the Google Analytics interface, go to the Admin panel.
- Under the View column, click on Goals.
Step 3: Create a New Goal
- Click the + New Goal button.
- Choose a goal setup option (e.g., Template or Custom).
- Click Continue.
Step 4: Configure Goal Details
- Goal Description:
- Name: Enter a descriptive name for your goal (e.g., "Purchase Completion").
- Type: Select the goal type. For tracking purchases, select Destination.
- Goal Details:
- Destination: Enter the URL of the thank you or confirmation page that users land on after completing a purchase (e.g.,
/checkout/onepage/success
).
- Destination: Enter the URL of the thank you or confirmation page that users land on after completing a purchase (e.g.,
- Value: Optionally, assign a monetary value to the goal if applicable.
- Funnel: Optionally, set up a funnel to track the steps leading up to the conversion.
- Click Save to create the goal.
2. Setting Up Enhanced Ecommerce Tracking
Step 1: Enable Enhanced Ecommerce in Google Analytics
- In Google Analytics, go to the Admin panel.
- Under the View column, click on Ecommerce Settings.
- Toggle the switches to enable Ecommerce and Enhanced Ecommerce Reporting.
- Click Save.
Step 2: Enable Enhanced Ecommerce in Magento
- Log in to the Magento Admin Panel.
- Go to Stores > Configuration > Sales > Google API.
- Expand the Google Analytics section.
- Set Enable Enhanced Ecommerce to "Yes".
- Set Enable Enhanced Ecommerce Reporting to "Yes".
- Click Save Config.
3. Using Google Tag Manager for Advanced Conversion Tracking
Step 1: Set Up Google Tag Manager
- Go to the Google Tag Manager website and sign in with your Google account.
- Create a new container for your Magento store.
Step 2: Add Google Tag Manager to Magento
- In Google Tag Manager, copy the container snippet.
- Log in to the Magento Admin Panel.
- Go to Content > Design > Configuration.
- Edit your current theme and add the container snippet to the HTML Head and Footer sections.
- Save the configuration.
Step 3: Set Up Tags and Triggers in Google Tag Manager
Create a New Tag:
- In Google Tag Manager, click on Tags > New.
- Click on Tag Configuration and select Google Analytics: Universal Analytics.
- Set the Track Type to Page View.
- Enter your Google Analytics Tracking ID.
- Click Triggering and select All Pages.
- Save the tag.
Create a Conversion Tag:
- In Google Tag Manager, click on Tags > New.
- Click on Tag Configuration and select Google Analytics: Universal Analytics.
- Set the Track Type to Event.
- Configure the event category, action, and label to match your conversion event (e.g., "Purchase", "Complete Purchase").
- Enter your Google Analytics Tracking ID.
- Click Triggering and create a new trigger for the conversion event (e.g., page URL contains
/checkout/onepage/success
). - Save the tag.
Publish the Container:
- Click on Submit to publish the container changes.
Example Workflow for Tracking Conversions
1. Set Up Goals in Google Analytics:
- Create a new goal for tracking purchase completions.
- Configure the goal with the thank you page URL as the destination.
2. Enable Enhanced Ecommerce:
- Enable Enhanced Ecommerce in both Google Analytics and Magento.
- Save the configurations.
3. Use Google Tag Manager:
- Set up Google Tag Manager for advanced conversion tracking.
- Add Google Tag Manager to Magento.
- Create and configure tags and triggers for conversion events.
- Publish the container.
Tips for Effective Conversion Tracking
- Test Setup: Regularly test your conversion tracking setup to ensure accuracy.
- Monitor Data: Continuously monitor your conversion data in Google Analytics to identify trends and opportunities for optimization.
- Optimize Funnels: Analyze the funnel steps in Enhanced Ecommerce to identify and address drop-off points.
By following these steps, you can effectively track conversions in Magento, providing valuable insights into user behavior and the effectiveness of your marketing efforts.