Rich-text Reply

Shopify Conversion Metrics

rkrieg 07-29-15

Shopify Conversion Metrics

I understand you can't track revenue via Shopify.  I'm trying to track conversions, which if I'm reading correctly may not be possible either.  In that case is there a way to set up a goal that would be a proxy of a conversion...ie in my experiment I'm testing up changing the homepage layout.  Can I set up a goal of "conversion" if the user clicked on the check out button on my cart page?   If so how would I set this up as I can only see how to make a click event from the current page my experiment is on.  

 

Thanks in advanced guys!

-Renny

 

 

Level 2

siherron 07-31-15
 

Re: Shopify Conversion Metrics

Hi @rkrieg,

 

I can't help you with the Shopify part of your question as I've never used the product.

 

As far as setting up goals in Optimizely, I'd recommend taking a look through this support page:

 

https://help.optimizely.com/hc/en-us/articles/200040675

 

It will walk you through setting up goals both in the editor (so on the experiment page) and help you to set up the goals you need 'off page' (as per your query).

 

Does that help?

Simon Herron
Optimisation Consultant
Level 2
Amanda 07-31-15
 

Re: Shopify Conversion Metrics

@siherron is totally right, but I think he linked to the wrong article Smiley Happy Here is the actual article that outlines how to set up goals: https://help.optimizely.com/hc/en-us/articles/200039905-Click-goals

 

You can definitely create a click goal on your "Add to Cart" button. This will give you a proxy conversion, just like you mentioned. You can track clicks on pageviews easily on any page that lives on your home domain (not a shopify domain). 

 

Does this help clear things up? Simon or I would be happy to provide some more information. 

Optimizely
Amanda 07-31-15
 

Re: Shopify Conversion Metrics

[ Edited ]

@rkrieg  Ah actually - it was my bad and I misunderstood the inital question. Looks like @siherron had it right all along! Of course! 

 

You will want to create a click goal on the add to cart button, but make sure to adjust the goal tracking to make sure the click gets tracked on a page outside of your experiment. 

 

 

Optimizely
rkrieg 08-02-15
 

Re: Shopify Conversion Metrics

Thanks for the help guys...I set that up the other day and for some reason these clicks aren't showing up in my results.  I'm wondering if I need additional tracking code or if there's something else I'm doing wrong.  Any insights would certainly be appreciated!

 

 

 

Code in the site header:

 

<script src="//cdn.optimizely.com/js/3234130089.js"></script>

 

 

 

Conversion page tracking code:

 

<!-- Optimizely Revenue Tracking Code -->

<script type="text/javascript">
var optimizely = optimizely || [];
var revenueInCents = {{ subtotal_price | money_without_currency }} * 100;
optimizely.push(['trackEvent', 'conversion', revenueInCents]);
</script>


<script src="//cdn.optimizely.com/js/XXXXXXXXX.js"></script>
<!-- End Optimizely Revenue Tracking Code -->

Level 2
Amanda 08-04-15
 

Re: Shopify Conversion Metrics

Can you post the URL where the experiment is running and the URL where you have the click tracking set up?
Optimizely
rkrieg 08-04-15
 

Re: Shopify Conversion Metrics

Hey Amanda, the experiment is on the homepage:

 

http://kuttingweight.com/

 

And the goal is on the cart page on the "Checkout" button/element: 

 

http://kuttingweight.com/cart/

Level 2
Amanda 08-04-15
 

Re: Shopify Conversion Metrics

@rkrieg - there are actually 2 issues here: 

 

1. Firstly, when you want to create a click goal on an element that does not exist within your experiment's URL targeting conditions, you need to adjust the goal targeting. Here is an article that describes how to do this ( https://help.optimizely.com/hc/en-us/articles/200039905-Click-goals#redirect_goal_targeting)

 

2. However, in your case, the URL actually does not change as the user progresses from the "quick view" button to the view where the checkout button actually exists. Because there is not a unique page URL, Optimizely won't be able to bind the click event to the checkout button since it doesn't exist yet when http://kuttingweight.com/cart/ intiailly loads. To get around this, you will need to add a custom event to this element. Here's the article that describes this (https://help.optimizely.com/hc/en-us/articles/200039925-Custom-event-goals). You can just bind the revenue event and click goal to the #checkout button in your site code.

 

Does this help?  

 

Optimizely
rkrieg 08-04-15
 

Re: Shopify Conversion Metrics

Amanda I was able to get around that by adding something to my cart...then I was able to view the page and click on the element to set up the goal.  You're saying that won't work by default since the page doesn't exist without anything in the cart?

Level 2
Amanda 08-04-15
 

Re: Shopify Conversion Metrics

Single page apps can get tricky. It won't work by default because Optimizely will run only on inital page load of the /cart page. On the initial view of the /cart page, the checkout button doesn't exist yet, so the snippet cannot bind the event to anything. You can easily get around this with a custom event as mentioned above since custom events are triggered by actions you define within the site code. 

 

 

Optimizely