RBC A/B Test - Query Parameter Testing

Current URL

Current A/B Group

Test Different Segments

Click these links to test different segment parameters:

No Segment (Default) Student Segment Newcomer Segment Invalid Segment

Test A/B Groups

To test different A/B groups, clear storage and refresh multiple times, or manually set:

Combined Testing

Test combinations of A/B groups and segments:

Student + Random A/B Newcomer + Random A/B

How the Logic Works:

  1. Query Parameter Reading: The script reads the segment parameter from the URL
  2. A/B Assignment: Randomly assigns A or B group, persists in localStorage
  3. Content Personalization: Only applies personalized content when:
    • A/B group is 'B' AND
    • A valid segment is provided in the URL

Expected Behavior:

Group A + Any Segment: Default content Group B + No Segment: Default content Group B + Student Segment: "Open an RBC Student Chequing Account and Get the New iPad for School" Group B + Newcomer Segment: "Open an RBC Newcomer Account and Get the New iPad to Start Your Journey" Group B + Invalid Segment: Default content

Manual URL Testing

You can also manually edit the URL in your browser:

index.html?segment=student index.html?segment=newcomer index.html?segment=student&other=param