Testimonials Bubbles jump to the top as soon as I add another javascript.

3 replies · opened Jul 27, 2016

CchristophdbJul 27, 2016

Hi semicolonweb,

First I have to tell you that I love canvas. I tried many frameworks before and canvas is really the absolutely best one.
I have a problem and I hope you can help me. It is regarding my website www.ionas.ch.

On the first page you can find at the end of the page some testimonials. These are working great if I don't use custom js code.
But I want to implement a short tracking tool called "Glance" (was a former codecanyon tool - https://codecanyon.net/item/glance-simple-web-analytics/5087463).

So if I add the necessary code for glance at the end of my index.php the small red buttons of the testimonials jump to the top. As soon as I remove the js from glance it is working fine again.

Here is the code of glance:
<script type="text/javascript">
var _glance = 'www.ionas.ch/glance/track.php';
var script = document.createElement('script');
script.src = '/glance/glance.min.js';
document.getElementsByTagName('head')[0].appendChild(script);
</script>

Can you help me how to prevent this?

SSemicolon WebSTAFFJul 28, 2016

Hello,

Thank You so much for the Kind Words. Really Really Appreciate them! :)

We have just checked out your Website but the Testimonials Pagination seems to be working fine for us: https://www.dropbox.com/s/n6vcg6ba1yhb872/Screen%20Shot%202016-07-28%20at%208.21.26%20PM.png?dl=0 . Can you please conform if this issue was resolved and if not, then clearing the cache might fix this for you. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

CchristophdbJul 28, 2016

Hi SemiColonWeb,

thanks for the quick response. The problem is resolved but I will try to explain what happend and what I did.

  1. what does glance does
    I added glance - a web analytics tool - to my website https://www.ionas.ch. The bad behavior occured because of the logic of glance. Glance tries to track all links on the page. The script assumes all <a> tags are links and will add an event listener that tracks the click, then forwards the user to that href=“…”. This is bad, because in the testimonials this behavior is not desired.

  2. what I did
    I updated the javascript of glance not automatically to follow every link. Now the problem is solved without changing canvas. So I hope I keep it possible to update canvas any time in the future.

Best regards
Christoph

SSemicolon WebSTAFFAug 1, 2016

Hello,

Really Glad that your issues were resolved. Thanks for your Patience.

Do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard