Javascript on Sticky Bar

Hi there,

I’ve got a piece of javascript running that strips variables from the URL and then send them through on the users next click into the the new clickthrough URL. The idea is that I can pass variables from the initial click into unbounce and then pass those variables through to my site on the next click to track conversions in my system based on the variables.

I’ve created a sticky bar and when I add that sticky bar to the landing page, the JS doesn’t function as it should on the CTA in the sticky bar, but functions correctly on all other CTA’s in the landing page. When I attach that javascript directly to the stick bar and I click through - the landing page just breaks completely.

Any ideas on how to get a piece of JS that functions on next click to work on the sticky bars considering the above?

Thanks in advance.