Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate F.A.Q/Instructions › Hide the Affiliate ID from the URL after the visitor lands on the landing page
Tagged: affilaite id, affiliate id, Cloaked Affiliate Link, default id, display sales widget, hide affiliate id, hide affiliate id in the url, url, url redirect
- This topic has 23 replies, 10 voices, and was last updated 4 years, 11 months ago by
wzp.
-
AuthorPosts
-
September 18, 2010 at 6:30 am #1868
amin007
ParticipantSay for example your landing page URL is the following:
http://www.example.com/my-product-page
The affiliate URL for this page will look like the following:
http://www.example.com/my-product-page/?ap_id=xyz
Now, if you want to hide the “?ap_id=xyz” portion from the URL after the visitor lands on the page then do the following:
1) Open the “wp_aff_advanced_configs.php” file (this file is in the “wp-affiliate-platform” plugin folder) and search for the following line:
define('WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL', '0');
2) Once you find it simply it with the following line:
define('WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL', '1');
That should do the trick.
April 17, 2012 at 10:27 pm #24457crazedpilot
MemberI can’t find this file nor the ‘WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL’ code anywhere on our server in another file. Where is this lcoated in the current version of the code? Thanks!
April 18, 2012 at 2:51 am #24458admin
KeymasterWhat version of the affiliate plugin are you using?
April 27, 2012 at 12:52 am #24459crazedpilot
MemberSorry I missed the question you send me – 4.8.9
April 27, 2012 at 12:59 am #24460crazedpilot
Memberin addition, if that’s NOT the current version, I’m confused on how to upgrade since I can’t seem to find anywhere to download it now even with my username and password – your guidance is appreciated. Thanks!
April 27, 2012 at 5:02 am #24461Peter
MemberHi, It’s actually not the current version. Please get a new copy of the plugin from the following link:
September 21, 2012 at 9:08 pm #24462Frank
MemberHey guys, this file seems to have changed over time, so what is the instructions to make the affiliate links disappear?
Frank
September 22, 2012 at 7:31 am #24463admin
KeymasterAre you looking in the
"wp_aff_advanced_configs.php"
file? What version of the affiliate plugin are you using?September 22, 2012 at 4:58 pm #24464Frank
MemberThe client is using a slightly older version – 4.9.9.1 of the wp aff software. But the file in question, “wp_aff_advanced_configs.php”, I cannot find.
I know that they need to upgrade, but I also know that I’ve upgraded these guys since this post was created, so they should have this file.
September 22, 2012 at 11:58 pm #24465admin
KeymasterLoad a fresh copy of the plugin and that should take care of it:
https://support.tipsandtricks-hq.com/forums/topic/re-install-or-load-a-fresh-build-of-the-plugins
January 28, 2013 at 3:34 am #24466Greenster
MemberHi,
I followed this and it’s not working for me. I just bought the plugin today so I should have the latest version. I have cleared the cache. Any clue as to why?
I should point out that the default landing page URL is a subdomain of the URL where the plugin is installed.
Thank you,
J
January 28, 2013 at 10:25 pm #24467admin
KeymasterSo are you saying that the plugin is installed in [www.example.com] and you are doing something on [sub-domain.example.com]? If that is the case then first read the following posts to understand the capability of a WordPress plugin:
https://support.tipsandtricks-hq.com/forums/topic/wp-multisite-install-and-plugin-behavior
January 28, 2013 at 11:43 pm #24468Greenster
MemberMarch 5, 2013 at 12:21 am #24469dougsloss
MemberHi, I’m trying to also hide the Affiliate ID from the URL after the visitor lands on my landing page. Your initial post from 2 years ago states the following:
Say for example your landing page URL is the following:
[http://www.example.com/my-product-page]
The affiliate URL for this page will look like the following:
[http://www.example.com/my-product-page?ap_id=xyz]
Now, if you want to hide the “?ap_id=xyz” portion from the URL after the visitor lands on the page then do the following:
1) Open the “wp_aff_advanced_configs.php” file (this file is in the “wp-affiliate-platform” plugin folder) and search for the following line:
define(‘WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL’, ‘0’);
2) Once you find it simply it with the following line:
define(‘WP_AFFILIATE_AUTO_REDIRECT_TO_NOT_AFFILIATE_URL’, ‘1’);
That should do the trick.
Is this still the recommended course of action? And will the affiliate still get credit for the sale even though their id is not visible in the URL address?
Thank you!
March 5, 2013 at 5:23 am #24470admin
KeymasterYes, you can still use this feature as you have explained it. Yes, affiliates will continue to get commission even when you use this feature.
-
AuthorPosts
- You must be logged in to reply to this topic.