• Inactive
  • Weekly Execution Offers Reporting Process - 2021-2022

    Monday Offer Notebook Prep

    A. Preparing list of guests who viewed the offer in app (takes the longest)

    1. Download Offer User list from Amplitude link (

    https://analytics.amplitude.com/restaurantbrandsintl/chart/2t360m2?source=dashboard )

    2. Edit dates to most recent week-Monday to Sunday

    3. Download Users in 5 cohorts (since csv can only hold 1m rows of data)

    a.       Region – Ontario / Platform – iOS

    b.       Region – Ontario / Platform – non iOS (Ontario has more than 1m rows of data)

    c.       Region – Quebec

    d.       Region – Alberta + British Columbia

    e.       Region – All other (non Ontario/Quebec/Alberta/BC)

    4. Copy/paste an offer folder from the previous week ( Offers)

    5. Rename the downloaded files as Opened_app_yyyymmdd_1 format (can copy the name from the files in “Raw Data” folder and change the date)

    6. Open all downloaded and renamed files (takes time to load)

    7. Once the new files are opened, one by one update the files in “Edited”

    a.      Copy user_id column only

    8. Rename the files in Edited to the most recent date

    10. Upload the files to databricks – Data – Create Table

    a.       Table settings:

                                                                   i.      Cluster – Any cluster can be used to create a table

                                                                 ii.      Table Name – remove “_csv” from the table name

                                                               iii.      Create in Database – CA

                                                               iv.      Column Delimiter – “,”

                                                                 v.      First Row Header checked

    11.   In the Canadian  offer notebook : ( https://timhortons-dev.cloud.databricks.com/?o=2205369574251959#notebook/2951651830673629/command/2951651830673630 ), Change input table names from Command 36 “Viewed in App”

    12.   Run command 37 to check if the tables are properly uploaded

     

     

    B. Update email sends

    1. Change dates in the widgets from the measurement offer notebook (

    https://timhortons-dev.cloud.databricks.com/?o=2205369574251959#notebook/2951651830673629/command/2951651830673630)

    2. Run command 20 “All Emails Sent this Week” to find the email code sent that week (campaign_id)

    a.       Offer emails subjects are formatted as “15Nov2021_Monday_Newsletter_CA

    3. Add the campaign id in the list below (command 21, “List of Offer Emails to Filter for”)

     

     

    Tuesday morning update

    Master Offer Notebook Update

    (https://timhortons-dev.cloud.databricks.com/?o=2205369574251959#notebook/2951651830673629/command/2951651830673630)

    1. Run All Commands

    above Command 77 – to check before appending to the master offers table

    1. Run All commands after and including 77 – to append new weeks data to the master offers table

    Offer related queries

    (https://timhortons-dev.cloud.databricks.com/?o=2205369574251959#notebook/2951651830676449/command/2951651830676450)

    1. Change Week Start / End dates

    1. Run command 4 to update Offer Library

    1. Run command 7 for the redemptions

    1. Run command 9 for loyalty RRAMI

    1. Run command 11 and 12 for Net loyalty impact

    1. Run command 14 and 15 for Loyalty Discount Impact (don’t need Scott’s Discount file)

    1. Run command 17 for offer funnel

    1. Run command 19 and 20 for NoC Offer Impact Data

    1. Run command 21 for Offer Transaction FnP

    a.       Change TH_FISCAL_WEEK to include the most recent week

    Update Excel (1.Offer Impact_week xx)

    1. Update “Net Loyalty SWS Impact” Tab

    a.       Columns E (CMD14 offer related query), F (CMD 16 offer related query)

    b.       Column H (CMD 14 offer related query)

    c.       Column I (CMD 12 offer related query)

    1. Update “Offer Redemptions” Tab

    a.       Paste raw data in “Redemptions Data” tab

                                                                   i.      Get recent week data from “Offer Related Queries” notebook

    b.       Paste Loyalty RRAMI data in “National RRAMI” tab

    c.       Update pivot in “Offer Redemptions” tab

    1. Update “Offer Funnel” Tab

    a.       Get raw data inputs from CMD18 from offer related query

    b.       30 Day Active from “Master Offer Notebook” command 20 “Active Registered Users”

     

     

    Update Powerpoint

    1. Net Loyalty SWS Impact

    a.       Click on chart à Chart Design à Edit Data in Excel

                                                                   i.      Net SWS Impact