• Hi there,

    I have experienced two issues concerning this plugin.

    Mailto tracking does not work properly
    Unfortunately all links that contain a mailto do not get tracked at all. All my links (downloads, outbound websites etc) are placed within button shortcodes and that all works fine.

    Many people have reported issues on their mailto, so maybe this is something that can be investigated for the whole community in a future update?

    ‘Outbound’ link to a subdomain does not get tracked
    This one might not be a bug but simply a failure in setting it up correctly. Anyway:

    I have a link (set up in a shortcode) that links to a subdomain of ours, for instance https://dogs.website.com. I would like to track the clicking of that button as well, but it does not do that automatically. We are not using Analytics on the subdomain and we are not interested in it (as it is a different platform etc.) however I would like to see how many people click on the button to go to that subdomain. No further tracking is needed (as that would require analytics on the subdomain as well)

    Would anyone have a solution for this or could help me fix this issue?

    http://wordpress.org/extend/plugins/google-analytics-for-wordpress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • nowton

    (@nowton)

    Mailto tracking does not work properly

    In our case, it doesnt work at all. No code is added whatsoever. Pity, because for one of our clients it’s _the conversion by choice.

    nowton

    (@nowton)

    Mailto tracking does not work properly

    In our case, it doesnt work at all. No code is added whatsoever. Pity, because for one of our clients it’s _the conversion by choice.

    amadex

    (@amadex)

    Hi, the “mailto” problem is as old as 4.2.4 at least… I circumvented it by changing the following code (class-frontend.php, line 345):
    // Break out immediately if the link is not an http or https link.
    if ( strpos( $matches[2], “http” ) !== 0 ) {
    $target = false;
    } else if ( ( strpos( $matches[2], “mailto” ) === 0 ) ) {
    $target = ’email’;
    } else {
    $target = yoast_ga_get_domain( $matches[3] );
    }

    Into this:
    // Break out immediately if the link is not an http or https link.
    if (strpos($matches[2],”mailto”) === 0) {
    $target = ’email’;
    } else if (strpos($matches[2],”http”) !== 0) {
    $target = false;
    } else {
    $target = yoast_ga_get_domain( $matches[3] );
    }

    What I did was to change the order on which the link is evaluated, because “mailto” is never “http” so, with the current code, it breaks immediately on the first evaluation (is it http?)… It’s hard to me to understand why this never as been corrected and I could never get it touch with Yoast because it seems there are no direct email or whatsoever… I would appreciate this (or any other correction) to be part of the next release.

    nowton

    (@nowton)

    Hmm, we don’t have a class-frontend.php in our installation. However I discovered similar code in googleanalytics.php around line 1200. Will try on that and report back.

    amadex

    (@amadex)

    Older releases are at googleanalytics.php. The latest one is at class-frontend.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘2 issues | Tracking of mailto and tracking 'outbound' to subdomain’ is closed to new replies.