top of page

Add an annotation to GA automatically when a New Commit on Bitbucket

It only takes 5 minutes to automate this annotation, and NO coding skills are required.
Bitbucket annotation on Google Analytics

Here is how to do it:

 

 

1. Login to your GAannotation account here

 

 

2. Create your Zapier account here, you can start FREE

 

 

3. Create a new Zap, click on "MAKE A ZAP" button

Make a ZAP for Bitbucket

4. Type "Bitbucket" to find the app trigger and select it

Connect Bitbucket and Google Analytics Annotations

5. For Trigger Event, select "New Commit"

New commit in bitbucket

6. Connect your Bitbucket account and test that everything works fine.

Next: Set up the trigger, choose the Repo

Choose Trigger to add annotation

7. Time to test the trigger

Test trigger

8. Continue and select the action app, search for "Webhooks by Zapier" and select it.

Weebhooks for GAannotations

9. Select "POST" option

POST selection

10. Add the POST URL

IMPORTANT: Pay attention there is NO extra space after the URL when you paste it

GA annotations API

The POST URL you can copy it from the documentation page

GAannotations documantation

11. Choose "Form" in the "Payload type" section

set up annotations API

12. On the data section, you need to copy/paste the mandatory fields and choose the incoming data from Bitbucket, this will be the data for the annotation

setup annotations api

13. Scroll down to the "header", then:
 

  1. - Copy/paste the word "Authorization" on the header section
     

  2. - Copy/paste the word "Bearer" on the undefended section
     

  3. - Go to the API KEYS page and generate a key, copy/paste it after the word "Bearer".

    IMPORTANT :There must be a <space> between the word Bearer and Access Token.
     

  4. - Click Continue & Test

14. Test your ZAP

Test Bitbucket Zap

15. Go back to the annotations page and check if the annotations it's there, it will be also displayed on the Google Analytics account.

You can always edit or delete annotations from your dashboard ; )

Bitbucket annotation
Bitbucket annotation on Google analytics

Check out all the Integrations!

bottom of page