WordPress Affiliate Manager › Forums › Affiliate Manager Plugin › Cookies not being set from clicks
- This topic has 5 replies, 3 voices, and was last updated 6 years, 5 months ago by
Shadow Labs.
-
AuthorPosts
-
October 29, 2019 at 3:49 pm #6265
Jays Custom Creations
ParticipantWebsite: jayscustomcreations.com
Affiliate link:https://jayscustomcreations.com/product/nesting-chair-full-size-template/?wpam_id=21
WPAM user #21 is a new account. The account is approved and active.
Test to see if the cookie is set by going here and searching for the website while in Chrome: chrome://settings/siteDataProblem:
Affiliate clicks do not set cookie all the time. It seems that the problem just started or has been intermittent as I’ve been using this plugin successfully for a couple years now. I’ve gone thorough the process of disabling all other plugins to see if it will set a cookie and the link still does not. After clearing the cookies in Chrome and restarting the browser I go to the affiliate link listed above and it does not set a cookie for the click.Research:
This thread has a solution to contact the hosting provider and have caching exclusions set.I contacted my hosting provider via chat and requested caching exclusions to be allowed on my site to allow the cookies to be set. Their solution was different..
Thank you for holding, I appreciate your patience. I found some article about setup Cookie in PHP.
Please refer the following articlehttps://stackoverflow.com/questions/55580256/cookies-not-set-using-php-setcookie-function https://wordpress.stackexchange.com/questions/21752/setting-custom-cookies-in-wordpressHere is the basic syntax used to create a cookie.
<?phpsetcookie(cookie_name, cookie_value, [expiry_time], [cookie_path], [domain], [secure], [httponly]);?>
I told them I had no idea what that meant and needed caching exclusions to be allowed on my site. After some back and forth the rep got one of their admins to set it up. They let me know setcookie function was enabled and for me to check. I clicked the affiliate link and the cookie with the appropriate tracking ID was now showing in chrome. Problem solved…or so I thought. After getting off of chat support I cleared cookies and tried again. After a dozen or so clicks of the link and closing and reopening Chrome I cannot get the cookie to show up again.
Any other recommendations? I have 20+ affiliates with hundreds of links out there and I don’t want to go through the hassle of finding another plugin that works and having them all switch links.
October 29, 2019 at 3:57 pm #6266Jays Custom Creations
ParticipantUpdate:
It seems I can only get the cookies to be set while I’m logged into WordPress and visiting the affiliate link. After logging out, clearing the cache, and clicking the affiliate link the cookie is not set. After logging in and clicking the affiliate link the cookie is set. I’ve repeated this a few times to confirm.October 30, 2019 at 3:47 am #6267mbrsolution
ModeratorThank you for contacting us. Looks like this is going to require some deep investigation.
I have submitted a message to the developers to investigate further your issue.
Kind regards
October 30, 2019 at 3:51 am #6268Shadow Labs
Keymaster@jays-custom-creations, I clicked on your affiliate link and the cookie didn’t get set for me. That means it’s either a plugin conflict or a server issue. Your web host just sent you a canned response explaining how to use the PHP’s setcookie function.
Try deactivating one plugin at a time (except affiliates manager) and clicking on the link to find out whether it’s a conflict. Please make sure to do it from a browser where you are not logged in.
Once you have ruled out all the plugins you can get back to your host to resolve this issue.
October 30, 2019 at 3:29 pm #6269Jays Custom Creations
ParticipantSo this is strange. Before my original post I read the linked discussion and followed the steps in that post. I deactivated all plugins except Affiliates Manager and still couldn’t get the click to activate a cookie. Per Shadow Labs post here I did the same thing but this time deactivated in batches of 3 plugins to be a little quicker about narrowing it down because the site is live and getting traffic.
Between each group of 3 being deactivated I used another computer that was logged out of WP to check cookies after clicking the links. No change until I deactivated the batch of Sendy Widget Pro, tagDiv Cloud Library, and tagDiv Composer. After those were deactivated the cookie was active after clicking the affiliate link.
With the three culprits known I returned all used plugins to active to manually check those three. But before testing each one I checked the cookie performance with everything activated again. And it worked. So I’m back at square one with nothing deactivated, only reset, but now the affiliate links and cookies are working again randomly. Maybe one of those three had something going on and needed to be reset??
Would someone be so kind as to confirm they are now working. This first link is affiliate ID 21. The second link is ID 13. Can someone see if they are working and that the cookie will switch between the two after clicking on the second? I had to refresh the chrome settings tab (before searching for jays) to see the updated cookie after clicking the second link.
https://jayscustomcreations.com/product/nesting-chair-full-size-template/?wpam_id=21 https://jayscustomcreations.com/product/woodworking-workbench-metric-and-imperial/?wpam_id=13October 31, 2019 at 6:49 am #6271Shadow Labs
Keymaster@jays-custom-creations, I checked the links. The cookie got tracked for both.
-
AuthorPosts
- You must be logged in to reply to this topic.