NEED HELP - Adding code to track a form is breaking c5 editing capabilities
Permalink
I'm trying to add some simple javascript to track a marketo form, however when I do that, it breaks the editing function of the site.
Page testing:
http://staginga.certain.com/index.php/tester-form...
Trying to add the javascript below, but is making the edit bar disappear (see attached screenshots), essentially locking me out of the page. Its pretty straight forward code, but seems to be interferring with something. Anyone know why or how I can manipulate to play nice with C5?
Thank for any help in advance!
Page testing:
http://staginga.certain.com/index.php/tester-form...
Trying to add the javascript below, but is making the edit bar disappear (see attached screenshots), essentially locking me out of the page. Its pretty straight forward code, but seems to be interferring with something. Anyone know why or how I can manipulate to play nice with C5?
Thank for any help in advance!
<script language="Javascript" src="http://discover.certain.com/js/public/jquery-latest.min.js" type="text/javascript"></script> <script src="http://discover.certain.com/js/public/jQueryString-2.0.2-Min.js" type="text/javascript" ></script> <script src="http://discover.certain.com/js/public/jquery.cookie.js" type="text/javascript"></script> <script type="text/javascript"> // to set cookies. Uses noConflict just in case var $jQ = jQuery.noConflict(); // grab the URL parameter (repeat for additional parameters) var paramvalue1 = $jQ.getQueryString({ ID: "lsch" }); var paramvalue2 = $jQ.getQueryString({ ID: "ls" }); // set the cookies via jquery. expire time is in days (repeat for additional cookies) $jQ.cookie("engagewp", paramvalue1, {expires: 1, domain: '.certain.com'}); $jQ.cookie("engagewp", paramvalue2, {expires: 1, domain: '.certain.com'}); </script>
If you use chrome and look at the developer console, you will see the error messages that say 'duplicate declaration'
There are other scripts that you can collide with, so looking for duplicate declarations in the developer console is always a good place to start.