How to track mailto: as a goal in Piwik? - matomo

I'm using Piwik for analytics. I need to track clicks on a mailto: link. What's a good way to track this? I tried creating a goal "Click on a Link to an external website" and "where the external website URL contains Pattern mailto:". Doesn't seem to work.
I found this for Google Analytics. I hope it's less cumbersome with Piwik.

Use same onClick listener as mentioned in linked article and force Piwik to track a goal manually. Would be also useful to set the goal to be triggered manually and more than once during one visit.

Related

How can I disable public access to the embed code of a map from Google My Maps?

I am in the process of creating and publishing a map in Google My Maps, to show locations of various groups of businesses. The published map includes an option under the Share link to grab the embed code so as to publish the map elsewhere. I view the content of my map as having a value, and don't want others to be able to publish it. Can I disable the Embed option in the Share menu? Searching Google help has not helped.
I dont believe you can prevent users from downloading or sharing your google my maps. If you need to embed it, you will need to share it first. Once you share it, its accessible by anyone. Once its accessible, there is no way to prevent people from downloading, embedding or further sharing your data.
You can restrict whom you share it with but i guess you already know that and it is not what you want.
I am myself extremely interested in knowing if there is a solution/workaround to this

Google Analytics not tracking pages

So i'm using GA to track the pages my users visit. Unfortunately, it's only giving me the main page back. I definitely have more than one page on my website.
I think it's because i'm using React (and only have 1 index.html file) but i'm not sure how to fix this. Thanks!
What you can do is attach google analytics to DIV's and other things. What i suggest is to attach GA to other parts of your apps for better tracking
Please see this S.O. question for attaching to a div: To track clicks on a div using google analytics
If you have a GTM installed on your website it's possible to use a History change tag that has been created for such cases.
It fires every time an URL changes, even if a page doesn't reload completely. So that every time a user visits a new page (with new URL), this tag will send a pageview to GA.
if your site is single page application then you will run into this case. You will have to detect the page change by some callbacks and then trigger page view manually. Uladislau Khatskevich thought is correct history change event can be used for it, if GTM is used. History change event will help you in detecting when the page is changed. If GTM is not used then you have to provide a callback when page change

Disable Wagtail "copy" functionality

Is it possible to disable the copy functionality provided in Wagtail?
My team has some logic for a custom page type that is having some issues. We'd like to prevent people from using the copy functionality for a short period of time while we figure out what's going on, and how to fix it.
You could use the before_copy_page hook, e.g. to redirect editors to the listings page with a notification explaining that copying has been temporarily disabled:
https://docs.wagtail.io/en/v2.5/reference/hooks.html#before-copy-page

How to attach tracking code to anchored link for an email newsletter while retaining scroll to view?

I'm trying to figure out how to attach a tracking code to a link and still keep the anchor functional. This will be used in an email newsletter.
ex:
www.example.com/welcome#Intro so that link would scroll down to the intro section right?
now if I were to do the same thing but like this www.example.com/welcome#Intro?TrackingCode the scroll no longer works.
I tried to google it but I couldn't find anything, any suggestions?
thanks for your time!
Don't think you can track scrolls. The images load top to bottom. We can't use anything like lazy load as JavaScripts don't work in emails unless it's viewed in the browser. If you want to use on browser then you can use jQuery to do that.

Angular.js: Is there any disadvantage of hash in url with respect to SEO?

I am making a website using AngularJS, I am curious to know that is there any disadvantage of hash in url with respect to seo ?
e.g. http://www.website.com/#about-us
I'll appreciate any contribution.
Thanks
If we go back to the basics, HASH # means a DIV ID in your HTML, and to talk in more details Google ignores anything after the HASH.
Example, this page www.mydomain.com is similar to www.mydomain.com/#about-us
This is an advanced technique some marketers are using it to track their campaign without using parameters like UTMs to avoid content duplication.
To make sure your page is loading without any errors, try to disable the JS from your browsers using "Web Developer Tool" and then load your page, i think you will get a white page without content and this is the way Google and most of the search engines see your pages.
Also there is another way to test it by going to Search Console "Webmaster tool" and use fetch as Google, here you will see exactly how Google view your page.

Resources