# EPN Smart Links

**URL:** <https://meta.discourse.org/t/epn-smart-links/116293>\
**Category:** Product Support\
**Created:** [April 29, 2019, 9:15pm UTC](https://meta.discourse.org/t/epn-smart-links/116293 "2019-04-29T21:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![agentpoyo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/agentpoyo/32/139542_2.png) [@agentpoyo](https://meta.discourse.org/u/agentpoyo)\
**Post date:** [April 29, 2019, 9:15pm UTC](https://meta.discourse.org/t/epn-smart-links/116293/1 "2019-04-29T21:15:12Z")

</div>

Seems when I attempt to add Smart Links that turn eBay links into rover .ebay. com affiliate links, it’s stripping out the script code with the campaign id that is essential to building the link.

```plaintext
<script>window._epn = {campaign:XXXXXXXXXX};</script>
<script src="https://epnt.ebay.com/static/epn-smart-tools.js"></script>

```

I add this to the theme’s header but it seems after saving and viewing the page source, the first line of the script is completely wiped away:

```plaintext
<script>window._epn = {campaign:XXXXXXXXXX};</script>

```

If I comment the tag out with it shows up in the source code.

Am I missing something? This code works fine on Wordpress and other sites. What would cause this to get stripped which I believe is the cause in ebay links not turning into affiliate rover ebay com links.

Thanks for any insight or suggestions.

---

_[View the full topic](https://meta.discourse.org/t/epn-smart-links/116293)._
