Skip to content

Conversation

@Aryan20
Copy link
Contributor

@Aryan20 Aryan20 commented Dec 23, 2025

Description

Currently keyword are not carried to the referral, even though we have a field for that. This PR fixes that so that keywords are linked to the respective sale based on the cookie.

Relevant Technical Choices

Testing Instructions

Additional Information:

Screenshot/Screencast

Checklist

  • I have carefully reviewed the code before submitting it for review.
  • This code is adequately covered by unit tests to validate its functionality.
  • I have conducted thorough testing to ensure it functions as intended.
  • A member of the QA team has reviewed and tested this PR (To be checked by QA or code reviewer)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds functionality to record keywords in affiliate referrals by linking them to click logs via cookie data. Previously, keywords were tracked in click logs but not carried through to the referral records.

Key changes:

  • Modified record_referral() to fetch and set keywords from cookie-based click logs
  • Added get_keyword_for_referral() helper function to extract keywords from the affiliate cookie

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Successfully merging this pull request may close these issues.

2 participants