Skip to content

Implement Install Referrer for being able to report a conversion event back to Google Ads #877

@burrage

Description

@burrage

User Story
As a marketer,
I want the first time use of the Curious Reader container app to be linked to the marketing campaign that led to the user to find, install and use the app so that I have a way of passing conversion information back to Google Ads. This can be done via the Install Referrer API.

Via the Install Referrer API, setup a listener in the Curious Reader container app that reads the referrer data and then sends the data as an event to firebase. Use the event name: "first_open_cl". In this event send the campaign_id. Here is an example of how to read a referring Meta request. If it comes from Meta, you will need to use the decryption key which is in a canvas attached to the slack channel curious-reader-and-web-development. Needs to read both referrers from Meta and Google Ads

Done when:

  • Install referrer implemented and proven to run on first open
  • first_open_cl event with campaign_id viewable in BigQuery via firebase
  • Works for both Facebook and Google Ads

Facebook URL to test: https://play.google.com/store/apps/details?id=org.curiouslearning.container&referrer=utm_source%3Dapps.facebook.com%26utm_campaign%3Dfb4a%26utm_content%3D%257B%2522app%2522%253A0%252C%2522t%2522%253A1702591609%252C%2522source%2522%253Anull%257D&fbclid=IwAR3wKHXbe61hYbAv87LhfMsFqYE_z4vfsHx2dZXpBtNyPiXuMVsfvJK75GY

(Note: This is from the "CR Tswana - South Africa" ad campaign so hopefully, when we decrypt what's in this string we should see something like that)

Google URL to test FIRST: https://play.google.com/store/apps/details?id=org.curiouslearning.container&referrer=utm_source%3Dcurious_learning_test

**Note about Google-- since Google Ads doesn't allow us to see what data would flow in the URL like Facebook does, we will need to run some real ads to see what data comes in as the definitive second test. Please let us know when we would want to start running those Google Ads to test in the comments!

Testing assistance details:
https://stackoverflow.com/questions/5890914/how-to-test-android-referral-tracking/6966718#6966718

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions