Google Analytics Referral Exclusion for Convertables


#1

Not sure if anyone has experienced this, but our client’s Convertable was claiming a large volume of e-commerce transactions in GA because after it triggered on the client’s site it was passing click-through traffic back to the website as source: b4668…2e1.pages.ubembed.com medium: referral and overwriting the original traffic source.

Here’s how we solved it:
1-First we place the GA code on the Conv. directly through the javascript window in the editor.
2- Next we created a referral exclusion for domain: ubembed.com. (This is in the “Property” column of the GA Admin Panel under “Tracking Info.”)
3- We tested this on a browser by visiting the site in a tab and watching our visit in the Real-Time Section of GA before we clicked our UB Conv Link and afterwards.

UB - did we do this right?

Hope this helps save someone some time.


#2

Hey @David_Koye,

This may be down to some of the set up you had specific to this Convertable. I haven’t been able to replicate what you’ve described but if you could message me a link to the host page and the Convertable I’d be interested in taking a look.

I wonder are you aware of the information here for a Convertables and Google Analytics integration https://documentation.unbounce.com/hc/en-us/articles/115002063663

Regards,
Brian


#3

Hi @Brian_Burns,
This is for www.greentophuntfish.com and the convertable is https://app.unbounce.com/2482977/convertables/4cb8ed83-a80c-4224-b2cd-53e6f27c7a64/preview#desktop. Yes we set up the integration originally and that’s when we noticed the capturing of the traffic. This is the data on conversions since the change.


#4

Hi @Brian_Burns @David_Koye,

Same problem for us : since the installation of Convertables/Pop up, “11518aa1b58048e2bbb4b9b192f8c03c.pages.ubembed.com” is in the top referrer in Google Analytics and Facebook Analytics.

Unbounce Embed Code was installed in Google Tag Manager following the Unbounce’s instructions. It seems to be the same for greentophuntfish.com. Could it be the reason?

It would be great to fix this if possible (the referral exclusion in Google Analytics works but it’s not the best solution and it’s not possible to do a referral exclusion for Facebook Analytics).

Thanks,


#5

Hey @fdessort @David_Koye,

Apologies for the late response @David_Koye. After looking into this further I was able to reproduce the issue. For both of the above cases (@fdessort I looked up your published popup) the action of the form submit button is “go to url” and set to go to another of your webpages. Since the popup has a different domain it is appearing as a referral source.

I’m afraid I don’t see any way for us to resolve this issue. At this point all I can recommend is what you’ve both mentioned and add an exclude filter for ubembed.com. It’s unfortunate that Facebook Analytics does’t offer this option.

Sorry I can’t be of more help and please let me know if there are any further questions.


#6

Hi @Brian_Burns, we’re having the same issue where ____.pages.ubembed.com is showing up as a referrer page due to the sticky bar on our landing page. Excluding the traffic through Google Analytics isn’t an option for us because this traffic source is important to measure with the original UTM / referrer page.

Is there a way to get around this? Our landing page is https://get.daily-harvest.com/build-your-box/


#7

Hey @dave12,

I thought a bit more about your issue and came up with a workaround. It’s not pretty and there may be a better way of doing this but hopefully it is of some help to you. It should set the referrer to appear in Google Analytics as the host page’s url. Let me know if this works for you.

You’ll have to add custom JS to both the page and the sticky bar. Here are the steps:

Required Values

  1. buttonId - The ID of the button on the popup/sticky bar with the link

  2. destinationUrl - The url of the destination page.

  3. domain - The domain of the host page the popup/sticky bar triggers on.

  4. popupOrigin - The popup/sticky bars embed code url. For this example the value would be “f26e7782694e41398352088f013af031.js.ubembed.com
    image

Step 1.

On the popup/sticky bar set the action on the button to be “Close on click”.

Step 2:

Define the required variables (buttonId and url) and add the script below to the sticky bar. Then republish the sticky bar.

<script>
 const buttonId = "#lp-pom-button-9";
 const domain = "http://unbouncepages.com";
 
 document.querySelector(buttonId).onclick = function () {
   parent.postMessage(JSON.stringify("redirect"), domain);
 };
</script>

Step 3:

Define the required variables (destinationUrl and popupOrigin) and add the script below to the host page. Then republish the page.

<script>
 const destinationUrl = "http://unbouncepages.com/parent-page-redirect-destination-page/";
 const popupOrigin = "f26e7782694e41398352088f013af031.pages.ubembed.com";

 // On receiving message from the Convertable set a cookie
 window.onload = function() {
   function handleMessage(e) {
     var eventData = JSON.parse(e.data);

     if (e.origin.includes(popupOrigin)) {
       // Check for the message
       if (eventData === 'redirect') {
         window.location.href = destinationUrl;
       } 
     }
   } 

   // Listen for the message from the popup
   window.addEventListener('message', handleMessage);
 }
</script>

#8

Thanks for your help on this @Brian_Burns For this Google Analytics issue, does this referral page show up only for users who click on the sticky bar, or not necessarily?


#9

Yes, that should be the case.