google analytics addthis integration

jklfa Dec 15, 2011 01:10PM EST

Why am I not seeing share button results in my google analytics?

I have installed the newest add this code and yet nothing shows up.

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_linkedin"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_button_google_plusone"></a>
</div>
<script type="text/javascript">
     var addthis_config = {
        data_ga_property: 'UA-446744-2'
data_ga_social : true
     };
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=jklfa"></script>
<!-- AddThis Button END -->

Do the results take days to show up or is there something wrong with the code?
Currently the only results in google analytics are for google+

Please help.

1 Community Answers

Paul Dec 15, 2011 04:51PM EST

Properties inside the addthis_config variable need to have commas between them or they're invalid JavaScript. Try using this:

<script type="text/javascript">
var addthis_config = {
data_ga_property: 'UA-446744-2',
data_ga_social : true
};
</script>


This question is closed to new answers.

Still need help?


General Topics

 

Developers