squarespace

Add FB pixel event code into button - Squarespace

房东的猫 提交于 2019-11-28 12:54:40
问题 I am new to squarespace. My client wants to track the page views for this, I have injected Base pixel code to header of all pages and it worked perfect, But now she wants to track , if the user click on any buy button on this page I have no idea how to inject facebook pixel code to a button in squarespace, any idea or reference would be highly appreciated . Thanks 回答1: It sounds like what you want to do is add an "Event Code" either: A) to the page that the user sees after clicking the button

JavaScript only being called once in Squarespace

丶灬走出姿态 提交于 2019-11-28 02:18:59
I have some custom JavaScript on my SquareSpace site that manipulates Product titles beyond what you can do with SquareSpace's default style editor. It works when initially loading the page ( https://www.manilva.co/catalogue-accessories/ ) but if you click on any of the categories on the left, the styling resets to the default. I'm assuming the JavaScript is being overwritten by the SquareSpace style, but I can't figure out why. Perhaps I'm calling the function in the wrong place? Any suggestions would be helpful. Thanks! Current code: document.querySelectorAll(".ProductList-filter-list-item

Javascript/JQuery not working until after page reload

久未见 提交于 2019-11-27 02:16:21
This code is listed on the header of all of my webpages. When I click a link on my website, I'm unable to use the buttons on the page until after I refresh. How can I fix this? <script src="https://code.jquery.com/jquery-2.1.3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.faqElement').click(function() { var faqElement = $(this); var question = faqElement.find('.faqQuestion'); var answer = faqElement.find('.faqAnswer'); if (!answer.hasClass('activeFaqAnswer')) { $('.faqElement').removeClass('flipButton'); faqElement.addClass('flipButton'); $('

Javascript/JQuery not working until after page reload

廉价感情. 提交于 2019-11-26 11:39:27
问题 This code is listed on the header of all of my webpages. When I click a link on my website, I\'m unable to use the buttons on the page until after I refresh. How can I fix this? <script src=\"https://code.jquery.com/jquery-2.1.3.min.js\"></script> <script type=\"text/javascript\"> $(document).ready(function() { $(\'.faqElement\').click(function() { var faqElement = $(this); var question = faqElement.find(\'.faqQuestion\'); var answer = faqElement.find(\'.faqAnswer\'); if (!answer.hasClass(\