Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Analytics › Analytics for affiliate links
- This topic has 5 replies, 3 voices, and was last updated 4 years, 9 months ago by WCFM Forum.
- AuthorPosts
- January 21, 2020 at 5:29 pm #103012bruce.rockowParticipant
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?
- February 3, 2020 at 3:32 pm #105167KreatorParticipant
+1 Hello! I am interested also in this!
- February 6, 2020 at 3:57 pm #105785WCFM ForumMember
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
- February 6, 2020 at 5:28 pm #105858bruce.rockowParticipant
Yes, all of my products are affiliate links. I do not have any products purchased on my site.
- February 6, 2020 at 8:26 pm #105898KreatorParticipant
Same here please!
- February 10, 2020 at 2:31 pm #106425WCFM ForumMember
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
- AuthorPosts
- You must be logged in to reply to this topic.