Home > Tracking Campaigns > Thrive

Pass City & Region to Landing Page (11)


05-28-2015 07:09 PM #1 ThrvTrkr (Member)
Pass City & Region to Landing Page

Sorry for making everyone wait so long, but we've now implemented the ability to pass city and region to your landing page.

Simply use the tokens {loc:city} and {loc:region} when editing your landing page URLs in Thrive.

Any questions, as always, please submit a support ticket and our guys will take care of it for you!


12-17-2015 08:12 AM #2 hagelev (Member)

Hey , i hope you good)
please tell , how i add phone model definition on page? have a video tutorial?


12-17-2015 04:07 PM #3 ThrvTrkr (Member)

You just need to pass the appropriate token to your landing page URL when entering it into Thrive, e.g.:

http://lander.com/?model={devicemodel}

Then, use the provided code in Landing Pages > Get LP Code to call the "model" variable:
http://screencloud.net/v/uL2Z

Just change all the "c1" to "model" in this case.


07-06-2016 12:16 PM #4 rafa161 (Member)

Do we have to create a separate <script> tag in the head for every different variable we want to call out? So we would have one script with c1 and then copy and paste that one and change c1 to model, etc?


07-06-2016 01:19 PM #5 ThrvTrkr (Member)

Quote Originally Posted by rafa161 View Post
Do we have to create a separate <script> tag in the head for every different variable we want to call out? So we would have one script with c1 and then copy and paste that one and change c1 to model, etc?
There is a section titled "Recommended Code Specifically for Calling Out Device". So for device call outs specifically, just follow the instructions and use the code provided in that section.

For all other variable call outs using JavaScript, let's say you have c1, c2, and c3, so 3 varaibles, then it would be like:

In the <head> tag:

<script type="text/javascript">
var c1 = decodeURIComponent(window.location.search.match(/(\?|&)c1\=([^&]*)/)[2]).replace(/(\+|%20)/g, ' ');
var c2 = decodeURIComponent(window.location.search.match(/(\?|&)c2\=([^&]*)/)[2]).replace(/(\+|%20)/g, ' ');
var c3 = decodeURIComponent(window.location.search.match(/(\?|&)c3\=([^&]*)/)[2]).replace(/(\+|%20)/g, ' ');
</script>

Put these in the <body> tag where you want to call the variable:

<script>document.write(c1)</script>
<script>document.write(c2)</script>
<script>document.write(c3)</script>

Hope that makes sense


07-06-2016 10:29 PM #6 rafa161 (Member)

I am getting back {country} where I put the document.write in my landing page.

I am accessing the landing page via the LP URL where I passed the variables. Does this only work with the traffic from my traffic source? Is that why I can't see it?

Also, how can I pass carrier name to my LP?

Sorry for the noob questions.


07-07-2016 06:20 PM #7 ThrvTrkr (Member)

To test, you will need to go through a Thrive campaign URL that contains the landing page.

Thrive will be able to derive and replace {country} with the actual country. You need Thrive for that.

Does that make sense?

Passing carrier similar. Pass {isp} token to landing page.


07-08-2016 02:50 PM #8 cbrughmans (Member)

How do you do this? I guess via IP location detection (although that is not a waterproof method to determine someone's exact geographic region/location)
E.g. someone based in Antwerp (Belgium) could have a Dutch IP.


07-08-2016 11:18 PM #9 ThrvTrkr (Member)

Yes, it's IP based with ~95% accuracy. We care more about matching up with traffic sources so the optimizations on traffic sources correspond.


07-14-2016 04:37 PM #10 mrmarketer (Member)

I'm getting the value "undefined" on my landing page. Trying to pull the city so I have ?city={loc:city} and the corresponding javascript provided in Thrive inside the <head> tag and the other in my headline in the <body> tag. I created a test campaign to use that clickthrough URL and got nothing. Do I have to manually submit a value for C1? if so where?


07-14-2016 06:34 PM #11 mrmarketer (Member)

So I just talked to customer service and was told this isn't available for the self-hosted version.


Home > Tracking Campaigns > Thrive