WordPress.org

Forums

Shareaholic | share buttons, related posts, social analytics & more
[resolved] Loading google analytics (ga.js) - Why (6 posts)

  1. smittyswebworks
    Member
    Posted 10 months ago #

    Below is a snippet of the <head> tag and I'm trying to figure out why the line that reads:

    <script id="shr-google-analytics" type="text/javascript" src="//google-analytics.com/ga.js" data-cfasync="false">

    is loading.

    I do not have any google analytics codes in the shareaholic plugin, yet this scrip is loading. What's more, I can't seem to find from where the script is loading in the plugin PHP files.

    Any suggestions?

    SNIPPET FROM <HEAD> tag:
    <script type="text/javascript">
    <script id="shr-analytics" type="text/javascript" async="" src="//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic_analytics.js">
    <script id="shr-google-analytics" type="text/javascript" src="//google-analytics.com/ga.js" data-cfasync="false">
    <link id="shareaholic-publisher-css" href="http://www.martin-taylordentistry.com/wp-content/uploads/shareaholic/spritegen/sprite.css" media="screen" rel="stylesheet">
    <style type="text/css">

    https://wordpress.org/plugins/shareaholic/

  2. Shareaholic
    Member
    Plugin Author

    Posted 10 months ago #

    @smittyswebworks It looks like you're running a really old version of the plugin. Can you please make sure you're on at least version 7+ of the plugin?

    http://wordpress.org/plugins/shareaholic/installation/

  3. smittyswebworks
    Member
    Posted 9 months ago #

    OK. Have loaded the latest version of shareaholic and still get the same issue. Shareaholic is loading the ga.js script, yet I don't have google account info in shareaholic. See snippet below...

    The website is martin-taylordentistry.com if you want to take a look.

    <style type="text/css" media="screen">
    <style type="text/css">
    <script src="http://www.martin-taylordentistry.com/wp-content/themes/sadiadesign/home.js" type="text/javascript">
    <script type="text/javascript">
    <script id="shr-google-analytics" type="text/javascript" src="//google-analytics.com/ga.js" data-cfasync="false">
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" data-cfasync="false">

  4. Shareaholic
    Member
    Plugin Author

    Posted 9 months ago #

    @smittyswebworks go to Shareaholic -> Advanced Settings and choose to Disable Analytics to make this go away.

  5. smittyswebworks
    Member
    Posted 9 months ago #

    OK. So I guess the next question is exactly what gets disabled when you disable analytics in the advanced settings?

  6. Shareaholic
    Member
    Plugin Author

    Posted 9 months ago #

    @smittyswebworks all of Shareaholic Analytics will get disabled -- https://shareaholic.com/publishers/analytics/

    If you're using the Related Content app, the quality of the recommendations will decrease as well as fewer data points will be go into determining the best possible matches.

    This will not affect Share Counts as those are pulled directly from their respective services.

Reply

You must log in to post.

About this Plugin

About this Topic