Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    We want to add UTM to track sales

    General Discussion
    2
    2
    31
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      gauravjain1 last edited by

      Hello

      We want to add utm in url to track clicks and sales for affilates
      we use 2.3.6 bagisto

      How to do this

      Regards
      Gaurav

      Gaurav Jain

      1 Reply Last reply Reply Quote 0
      • admin
        admin last edited by

        Hello Gaurav,
        Greetings!

        Thank you for reaching out.

        Yes, UTM parameters can be implemented in Bagisto to track affiliate clicks and conversions. Since UTM parameters (such as utm_source, utm_medium, utm_campaign, etc.) are used for tracking marketing sources, they can be captured when a customer lands on the website and associated with their complete purchasing journey.

        Proposed Implementation Flow

        1. Capture UTM Parameters

        Create a middleware or use an event listener to capture UTM parameters from incoming URLs.

        For example:

        https://yourstore.com/product/abc?utm_source=affiliate1&utm_medium=partner&utm_campaign=sale

        The captured UTM values can then be stored in the customer session or browser cookies.

        2. Maintain Tracking Throughout the Customer Journey

        Ensure that the stored UTM data remains available while the customer:

        • Browses products
        • Adds items to the cart
        • Proceeds to checkout

        This ensures the original affiliate or campaign information is retained until the order is placed.

        3. Save UTM Details with Orders

        Add custom fields to the orders table and store the captured UTM information during the order placement process.

        This will allow you to identify which affiliate, campaign, or marketing source generated the successful sale.

        4. Generate Affiliate Conversion Reports

        Once UTM data is stored with orders, custom reports can be created to analyze:

        • Affiliate performance
        • Campaign effectiveness
        • Conversion and sales data

        Please note that Bagisto v2.3.6 does not provide built-in support for affiliate UTM tracking. Therefore, this functionality will require a custom implementation based on your affiliate tracking and reporting requirements.

        Thank You
        Kartikey Dubey
        Team Bagisto

        1 Reply Last reply Reply Quote 0
        • First post
          Last post