Analytics for affiliate links

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

From now the forum will be read-only!

This topic contains 5 replies, has 3 voices, and was last updated by WCFM Forum WCFM Forum 6 months ago.

  • Author
    Posts
  • #103012
    Avatar
    bruce.rockow
    Participant

    How do I configure Analytics to track when a customer clicks on an affiliate link button. All of my product pages have a button called “Buy Direct” and I would like to know when they get clicked for each product. Is this possible to do with Analytics?

  • #105167
    Avatar
    Kreator
    Participant

    +1 Hello! I am interested also in this!

  • #105785
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    How do I configure Analytics to track when a customer clicks on an affiliate link button. All of my product pages have a button called “Buy Direct” and I would like to know when they get clicked for each product. Is this possible to do with Analytics?

    – Is your all products are “External/Affiliate” products?

    Thank You

  • #105858
    Avatar
    bruce.rockow
    Participant

    Yes, all of my products are affiliate links. I do not have any products purchased on my site.

  • #105898
    Avatar
    Kreator
    Participant

    Same here please!

  • #106425
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Please add this line to your site and take a look –

    add_filter( 'wcfm_is_allow_external_product_analytics', '__return_true' );

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

    Thank You

You must be logged in to reply to this topic.