For more advanced A/B testing scenarios see the A/B test section in the ProveSource JS API guide.
Set Up Google Optimize
If you don't have an account already, setup one here:
Once you log into your account, you'll see your experiments dashboard.
Link to Google Analytics
Optimize experiments are measured natively by Google Analytics and the products must be linked to unlock the full functionality of Optimize.
To link your Optimize container to an Analytics property:
Navigate to your Optimize Accounts page
Select a container.
Click LINK PROPERTY in the Container information panel.
Select a Google Analytics property that corresponds to the web domain where you’ll be running experiments. For example, if you created an Optimize container for example.com, select your example.com Analytics property. Properties that you don’t have Edit (or higher) permission to and properties that are linked to a different Suite Organization will appear grayed out.
Select one or more Analytics views, including at least one with few or no filters. Every Optimize experiment sends data to one Analytics view, and it will use that view's goals/metrics for its experiment objectives. The view(s) selected here will be available when you set up your experiments in Optimize.
Create an Experiment
Click Create Experiment to start configuring your experiment
Fill in the new experiment form. In the What is the URL of the page you'd like to test? put your website's URL. Make sure to write your fully resolved URL.
For example, if your website is https://mywebsite.com/ note you should omit the www part and include a slash at the end.
Select the A/B test option, and click Create.
Click Create Variant and name it "With ProveSource".
Google Optimize already provides us with a default variant called "Original" (without ProveSource). We are going to use the newly created variant "With ProveSource" to run a test with ProveSource enabled.
You now should have 2 variants in the current container:
Click Save in the top right corner to save your work.
Click a variant to adjust the traffic split between the two versions of your website.
We recommend testing with the default 50/50 split, but it's up to you.
Objectives are metrics or activities that your variants are measured against. Your experiment objective determines your experiment’s status and which variant is the leader. You can add additional objectives, but they do not affect status or leader declarations.
In the Description and hypothesis field, write what are your expecting to achieve, like "When ProveSource is enabled, signups count should increase"
Click Add Experiment Objective > Choose from List to import a list of Goals from your connected Google Analytics account.
If you did not yet connect your Google Analytics, no worries. You can either configure a custom objective, or save your experiment and connect Google Analytics from the right-side todo list in the Google Optimize dashboard.
Select one of your goals to proceed.
Click the Targeting tab to target your relevant users.
Scroll down to the When section and click Create Rule > URLs
In order to run your A/B experiment on every page of your website, select contains and put your website address.
This ensures your experiment will run on subdomains and any other page on your website.
Your experiment is almost ready, the only thing left is to add the ProveSource code to the "With ProveSource" variant.
Go to the variants section and click the "With ProveSource" variant. If you don't have the Google Optimize extension installed, you'll be prompted to install it.
You should now be redirected to your website's home page, or whichever URL you inserted Create an Experiment step.
NOTE: You need to remove the <script></script> tags from the script, as well as these lines:
<!-- Start of Async ProveSource Code -->
<!-- End of Async ProveSource Code -->
Select After opening tag and finally Apply.
In the top right you should see "1 change." click Done to save your variant modifications.
When you're ready, click Start Experiment.
It may take several hours for data to appear in your Google Optimize dashboard.
You are done!