Title: Be able to proxy JS script
Last modified: May 30, 2024

---

# Be able to proxy JS script

 *  Resolved [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/)
 * We would like to be able to proxy the js script on our dedicated GTM server-side
   and script server as we do with several scripts.
 * How can we change the script url to our server. I can’t find any settings related
   to that.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791591)
 * I’m afraid you can’t. Our plugin does not only use a regular JavaScript file (
   that you could, in theory, dynamically load from another URL if you so wished),
   but it also relies on a dynamic inline script that tells the regular JavaScript
   file information about your running tests (which pages are under test, what its
   conversion goals/actions are, etc).
 *  Thread Starter [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791660)
 * Yes using the plugin is not a problem.
 * It’s just avoiding the Cloud Proxy scheme :
    - the REST api
    - External domain forwarding
       * the insecurities of delegating a subdomain to you
       * the performance issues of delegating a subdomain to you
       * multiplication of dns resolution and domain calls.
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791728)
 * By default, whenever there’s an event in the visitor’s browser that needs to 
   be synched with our cloud (like “a visitor has seen this variant” or “a visitor
   has fulfilled that goal”), the event is sent to our cloud using an endpoint in:`
   api.nelioabtesting.com`.
 * Some browsers using ad-blockers might block that request, and so we’ll never 
   know the events a visitor triggered. This is really unfortunate, because the 
   information we collect is completely anonymous (again: there’s a visit here, 
   there’s a conversion there), and that’s it… but ad-blockers decided to block 
   our endpoints anyway.
 * To overcome this limitation, our plugin makes has a special setting to “proxy”
   those requests. This way, the events that are triggered in the visitors browser,
   would not ping our endpoint URL (`api.nelioabtesting.com`), but would instead
   ping your WordPress site (if you use the REST API method), which would then be
   responsible for synching the event back to our server, or a subdomain in your
   site that would forward the request to our servers (if you use domain forwarding).
 * So… what is your question precisely? I’m afraid I didn’t get it.
 *  Thread Starter [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791874)
 * Why don’t you use GTM Server side to notify like all others “pings” tools ?
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791899)
 * These proxy settings are pretty new in our plugin and I wasn’t (and still am 
   not) familiar with GTM Servers or how we’d integrate our plugin with them and
   them with our cloud. What advantages would they offer?
 *  Thread Starter [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791940)
 * In a simple way we put a server in the middle:
 * Our website call our server-side ( is a first party server for cookies too) and
   this server send to your api point all the report. Not the browser => no blocking
   at all.
 * That’s easy and all is based on GTM so there is plenty code source to do that
   in tag.manager.google.com
 * You keep the control by the API key.
 *  Thread Starter [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17791949)
 * And the js is from the same server.
 * So you can update it on the fly for all users.
 * The inline code remains in the plugin and all the setup.
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17793222)
 * I see. As I said, I’m afraid we’re not familiar enough with this setup to implement
   a compatibility layer on our own… but we’ll be happy to work with you and implement
   it together.
 * Please send us an email to support at nelio software dot com so that we can safely
   discuss what needs to be done.
 *  Thread Starter [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17793671)
 * I’ll be happy to work with you on that. Let’s move to your internal support support
   @ …
 * For me here it’s solved.
 * Thanks again for being so reactive.
 *  Thread Starter [clalpis](https://wordpress.org/support/users/clalpis/)
 * (@clalpis)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17793750)
 * –
    -  This reply was modified 2 years ago by [clalpis](https://wordpress.org/support/users/clalpis/).
 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17793767)
 * Cool! We’ll be waiting for your new message/ticket, where we can discuss and 
   work on the matter.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Be able to proxy JS script’ is closed to new replies.

 * ![](https://ps.w.org/nelio-ab-testing/assets/icon-256x256.png?rev=2514600)
 * [Nelio A/B Testing – AB Tests and Heatmaps for Better Conversion Optimization](https://wordpress.org/plugins/nelio-ab-testing/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nelio-ab-testing/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nelio-ab-testing/)
 * [Active Topics](https://wordpress.org/support/plugin/nelio-ab-testing/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nelio-ab-testing/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nelio-ab-testing/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [David Aguilera](https://wordpress.org/support/users/davilera/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/be-able-to-proxy-js-script/#post-17793767)
 * Status: resolved