Mobile app version of vmapp.org
Login or Join
Twilah146

: (How) Could I import twitter posts as annotations in Google Analytics? A site I maintain tweets every time a blog post is published. Since the editors of the site have gone a bit mad with

@Twilah146

Posted in: #GoogleAnalytics #Import #Twitter

A site I maintain tweets every time a blog post is published.

Since the editors of the site have gone a bit mad with the ability to change the apparent date a blog post was published (back-dating as a layout tool), the twitter stream is the easiest way I have of knowing the actual date of publication.

I now need to make a case for the efficacy of blogging (in conversion terms) and have turned to Google Analytics, who have been hoovering up our visitor data for over a year. My first thoughts were therefore to add annotations for each blog publish event, so that the ramps and spikes are more easily interpreted.

Is there any way of importing data to be used as annotations? How hard would it be to massage the twitter stream data into a format that Google might play nicely with? Would it just be easier to manually add an annotation for each tweet?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Twilah146

1 Comments

Sorted by latest first Latest Oldest Best

 

@Harper822

Google Analytics doesn't support automated annotations via their API (although there's an open feature request for it).

Likewise, they don't appear to support bulk import of annotations. As such, even if you could extract original publish dates from your blogging software (or lift them from twitter), you're stuck adding each annotation manually, one at a time.

For that reason, if you're trying to prove that posting regularly has a positive effect on traffic, I would suggest sampling a short period—say, a month—in which many posts were published, annotate those publish dates in Google Analytics, and compare that with a period in which few posts were created.

In future, Google may offer up the annotation feature via its API. When that happens, you could add annotations when each post is first published rather than attempting to hack something together that crawls twitter and submits data to Google Analytics en masse. With WordPress, for example, you might use the publish_post hook to ping the Google API to add an annotation each time a post with a unique ID is published. (You'd check it has a unique ID to make sure it's being published for the first time; you don't want to send data to Analytics if it's just being edited later on.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme