[Skip to main content](#vessel-content)

#   GET param in Paypal Return URL

##

- **[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")**
- [![cbadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/15476-cbadmin "View cbadmin's Profile") Topic Author
- [ Offline](/forum/user/15476-cbadmin)

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 5 months ago [\#160200](#160200) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  *[GET param in Paypal Return URL](/forum/29-payment-methods/869010-get-param-in-paypal-return-url#160200 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1  In my Google Analytics reports all the ecommerce transactions are from origin Direct traffic. This is not true as I know we have customers coming from various campaign for which we have properly tagged the landing page URLs with the GA variable.  The problem is that GA only remembers the last origin and that we use only Paypal as payment system. Therefore when customer go to Paypal and come back to the site, then their origin is Direct traffic. We loose the campaign origin.  The solution is to add ?utm&#95;nooverride=1 to the Paypal return URL.   eresponsible.wordpress.com/2013/07/23/ga...sources-attribution/  But even though I configure the Paypal plugin with the return URL   www.mysite.com/thank-you.html?utm&#95;nooverride=1  the return URL is always   www.mysite.com/thank-you.html  What am I doing wrong?")* was created by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")*

-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3.1

In my Google Analytics reports all the ecommerce transactions are from origin Direct traffic.
This is not true as I know we have customers coming from various campaign for which we have properly tagged the landing page URLs with the GA variable.

The problem is that GA only remembers the last origin and that we use only Paypal as payment system.
Therefore when customer go to Paypal and come back to the site, then their origin is Direct traffic. We loose the campaign origin.

The solution is to add ?utm_nooverride=1 to the Paypal return URL.
[ eresponsible.wordpress.com/2013/07/23/ga...sources-attribution/](http://eresponsible.wordpress.com/2013/07/23/ga-understanding-sources-attribution/)

But even though I configure the Paypal plugin with the return URL [ www.mysite.com/thank-you.html?utm\_nooverride=1](http://www.mysite.com/thank-you.html?utm_nooverride=1) the return URL is always [ www.mysite.com/thank-you.html](http://www.mysite.com/thank-you.html)

What am I doing wrong?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjkwMTAtZ2V0LXBhcmFtLWluLXBheXBhbC1yZXR1cm4tdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

12 years 5 months ago [\#160284](#160284) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[GET param in Paypal Return URL](/forum/29-payment-methods/869010-get-param-in-paypal-return-url#160284 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1  In my Google Analytics reports all the ecommerce transactions are from origin Direct traffic. This is not true as I know we have customers coming from various campaign for which we have properly tagged the landing page URLs with the GA variable.  The problem is that GA only remembers the last origin and that we use only Paypal as payment system. Therefore when customer go to Paypal and come back to the site, then their origin is Direct traffic. We loose the campaign origin.  The solution is to add ?utm&#95;nooverride=1 to the Paypal return URL.   eresponsible.wordpress.com/2013/07/23/ga...sources-attribution/  But even though I configure the Paypal plugin with the return URL   www.mysite.com/thank-you.html?utm&#95;nooverride=1  the return URL is always   www.mysite.com/thank-you.html  What am I doing wrong?")*

Hi,

The final URL should definitely contain that extra parameter if you added it in the Return URL parameter of the payment method.
However, that might not help you anyway since that's not the URL where PayPal redirects you, but the URL that HikaShop system redirects you after it did some processing.
You might need to add your parameter in the URL of the line:
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid;
of the file plugins/hikashoppayment/paypal/paypal.php like that:
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&amp;ctrl=checkout&amp;task=after_end&amp;utm_nooverride=1&amp;order_id='.$order-&gt;order_id . $this-&gt;url_itemid;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjkwMTAtZ2V0LXBhcmFtLWluLXBheXBhbC1yZXR1cm4tdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")**
- [![cbadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/15476-cbadmin "View cbadmin's Profile") Topic Author
- [ Offline](/forum/user/15476-cbadmin)

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 4 months ago [\#161283](#161283) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  Replied by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")* on topic *[GET param in Paypal Return URL](/forum/29-payment-methods/869010-get-param-in-paypal-return-url#161283 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1  In my Google Analytics reports all the ecommerce transactions are from origin Direct traffic. This is not true as I know we have customers coming from various campaign for which we have properly tagged the landing page URLs with the GA variable.  The problem is that GA only remembers the last origin and that we use only Paypal as payment system. Therefore when customer go to Paypal and come back to the site, then their origin is Direct traffic. We loose the campaign origin.  The solution is to add ?utm&#95;nooverride=1 to the Paypal return URL.   eresponsible.wordpress.com/2013/07/23/ga...sources-attribution/  But even though I configure the Paypal plugin with the return URL   www.mysite.com/thank-you.html?utm&#95;nooverride=1  the return URL is always   www.mysite.com/thank-you.html  What am I doing wrong?")*

OK so here what I did

1) I did not want to change the plugin so I used NoNumber ReReplacer to make that modification "on the fly" in the HTML code of the waiting page just before being redirected to Paypal. So it has the same result as the modification you suggested and will be stable with future Hikashop upgrades.

2) I also added that Return URL in my Paypal Account configuration including the parameter utm_nooveride=1

3) I still have the [ www.mysite.com/thank-you.html?utm\_nooverride=1](http://www.mysite.com/thank-you.html?utm_nooverride=1) in Hikashap Paypal Standard return URL configuration

When arriving to the final Thank you page the parameter utm_nooverride is still not there!
Let's wait for a few orders coming from non Direct sources to see whether either 1) or 2) is helping Google Analytics to track the original source.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjkwMTAtZ2V0LXBhcmFtLWluLXBheXBhbC1yZXR1cm4tdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86560
- Thank you received: 14307
-
-

12 years 4 months ago [\#161325](#161325) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[GET param in Paypal Return URL](/forum/29-payment-methods/869010-get-param-in-paypal-return-url#161325 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1  In my Google Analytics reports all the ecommerce transactions are from origin Direct traffic. This is not true as I know we have customers coming from various campaign for which we have properly tagged the landing page URLs with the GA variable.  The problem is that GA only remembers the last origin and that we use only Paypal as payment system. Therefore when customer go to Paypal and come back to the site, then their origin is Direct traffic. We loose the campaign origin.  The solution is to add ?utm&#95;nooverride=1 to the Paypal return URL.   eresponsible.wordpress.com/2013/07/23/ga...sources-attribution/  But even though I configure the Paypal plugin with the return URL   www.mysite.com/thank-you.html?utm&#95;nooverride=1  the return URL is always   www.mysite.com/thank-you.html  What am I doing wrong?")*

1. Yes, that's even better ![:)](/media/kunena/emoticons/3.png ":)")

4. That's strange, you should get the parameter with these modifications. Did you edit the correct PayPal standard payment method instance ? (maybe you have several of them ?)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjkwMTAtZ2V0LXBhcmFtLWluLXBheXBhbC1yZXR1cm4tdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")**
- [![cbadmin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/15476-cbadmin "View cbadmin's Profile") Topic Author
- [ Offline](/forum/user/15476-cbadmin)

Less More

- Posts: 68
- Thank you received: 6
-
-

12 years 4 months ago [\#161767](#161767) by [cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")  Replied by *[cbadmin](/forum/user/15476-cbadmin "View cbadmin's Profile")* on topic *[GET param in Paypal Return URL](/forum/29-payment-methods/869010-get-param-in-paypal-return-url#161767 "-- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3.1  In my Google Analytics reports all the ecommerce transactions are from origin Direct traffic. This is not true as I know we have customers coming from various campaign for which we have properly tagged the landing page URLs with the GA variable.  The problem is that GA only remembers the last origin and that we use only Paypal as payment system. Therefore when customer go to Paypal and come back to the site, then their origin is Direct traffic. We loose the campaign origin.  The solution is to add ?utm&#95;nooverride=1 to the Paypal return URL.   eresponsible.wordpress.com/2013/07/23/ga...sources-attribution/  But even though I configure the Paypal plugin with the return URL   www.mysite.com/thank-you.html?utm&#95;nooverride=1  the return URL is always   www.mysite.com/thank-you.html  What am I doing wrong?")*

Good news there is a solution for this which does not require the parameter utm_nooveride=1.

In Google Analytics, go to Admin &gt;&gt; Property &gt;&gt; Tracking Info &gt;&gt; Referral Exclusion List
Then add paypal.com in the referral exclusion list.
From now on, going to Paypal.com will not erase the source / medium information from your customers.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjkwMTAtZ2V0LXBhcmFtLWluLXBheXBhbC1yZXR1cm4tdXJsP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.066 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
