Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
When Noah imported our BV4 users and orders into BV5 (I was having trouble) he imported our Affiliates as well. At this time, we do not pay affiliate commissions, we just use them to track the effectiveness of our advertising to see if it is paying for itself, so it is not a big deal.
After a while I noticed we were not getting any recorded affiliate referrals (hits) so I checked the Url's to see if there was a difference. There was.
So I did 2 things. First I set up custom Url's to point to the new id. Then I changed our Google ad to point to the correct Url for BV5.
Today I received our first BV5 affiliate sale (not the Google one) but BV5 did not record a referral hit. (It is possible they changed the referral id at my request.) I'm also pretty sure we have gotten hits from Google since I made the change. They are usually pretty consistent.
Why are we not getting any hits in the affiliates referral column like we did in BV4? Am I doing something wrong?
Bob Noble
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
I was looking into this today and found a small issue that was causing the hits not to be recorded. Affiliates were still being tracked and orders were being assigned affiliate ids properly, but the inserts into the affiliate tracking table were failing. Essentially we were passing the time for the affiliate referral into the database when we should have been allowing the database itself to be setting the time of the referral.
Here is a modification to the affiliate referral insert stored procedure that will fix the issue. This is only a temporary fix and will be fixed in the code in SP2, but currently we cannot release a hotfix for this issue.
If you do not have direct database access then please contact your ISP so that they can run this sql against your database.
Thanks, Justin
set QUOTED_IDENTIFIER ON GO
ALTER PROCEDURE [dbo].[bvc_AffiliateReferral_i]
@AffiliateId varchar(36), @ReferrerUrl nvarchar(1000), @TimeOfReferral datetime = null
AS BEGIN TRY SET @TimeOfReferral = GetDate() DECLARE @ReferralCount As int SET @ReferralCount = (SELECT COUNT(*) FROM bvc_AffiliateReferral WHERE DATEDIFF(second, TimeOfReferral, @TimeOfReferral) < 2) IF @ReferralCount = 0 BEGIN INSERT INTO bvc_AffiliateReferral (id, AffId, ReferrerUrl, TimeOfReferral) VALUES (NewId(), @AffiliateId, @ReferrerUrl, @TimeOfReferral) END END TRY BEGIN CATCH EXEC bvc_EventLog_SQL_i END CATCH |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 6/6/2005(UTC) Posts: 483
|
One of the trends I have noticed is the number and importance of bug reports has been on a steady decline. In fact they are getting kind of boring.
I just wanted to get this one in if you guys missed it. I'll wait for SP2. I think it will be out soon enough.
Bob Noble
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.