Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Affiliate Links Don't Work #11

Open
benjironelson opened this issue Apr 25, 2017 · 1 comment
Open

Affiliate Links Don't Work #11

benjironelson opened this issue Apr 25, 2017 · 1 comment

Comments

@benjironelson
Copy link

Installed the module in Evoq Content 8.5.0.
Added a new Vendor
Created an affiliate link
Added "affiliateId" to the "KeepInQueryStringRegex" in AUM
Copied the link from the notification
Accessed the link with affiliateId in private browser session

No clicks are being logged by the module for that vendor.

@benjironelson
Copy link
Author

I have found a relevant detail. In older versions of DNN, this code block was in default.aspx.vb:

        ' affiliate processing
        Dim AffiliateId As Integer = -1
        If Not Request.QueryString("AffiliateId") Is Nothing Then
            If IsNumeric(Request.QueryString("AffiliateId")) Then
                AffiliateId = Int32.Parse(Request.QueryString("AffiliateId"))
                Dim objAffiliates As New Services.Vendors.AffiliateController
                objAffiliates.UpdateAffiliateStats(AffiliateId, 1, 0)

                ' save the affiliateid for acquisitions
                If Request.Cookies("AffiliateId") Is Nothing Then       ' do not overwrite
                    Dim objCookie As HttpCookie = New HttpCookie("AffiliateId")
                    objCookie.Value = AffiliateId.ToString
                    objCookie.Expires = Now.AddYears(1)       ' persist cookie for one year
                    Response.Cookies.Add(objCookie)
                End If
            End If
        End If

Perhaps this should be put into a Vendors module specific HTTPModule to resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant