Once above setting is updated open Sitecore content tree. You can add google events to anchors using two fields type in Sitecore

Rich Text Editor

General Link

To insert google event using Rich Text Editor follow below steps –

Select any item which Contains RTE field.

Select show editor option highlighted in above image. In RTE type any text like “Google Event”. Select this text and insert link on this text by selecting Hyperlink Manger from the tools of RTE.

Select Analytics Events tab in Hyperlink Manager Popup and enter events details in the form as shown in below image

Click ok when you are done

Accept the changes in RTE and save the Sitecore item. This event will look like below in html of page. You can see this in Sitecore as well by clicking on HTML tab of RTE<a onclick=”_gaq.push(['_trackEvent','Category','Action','Label',1]);”>goolge event</a>

To insert google event using General Link Field Type follow below steps –

Select any item which Contains General Link field.

Inset link detail by selecting Insert option Link

To crate google event click on Google Event option highlighted in above image. It will open a popup with the form. Fill the form with proper argument for google event

Click ok when you are done

Save the Sitecore item. This event will look like below in html of page. You can see this in Sitecore as well by selecting raw value checkboxonclick=”_gaq.push(['_trackEvent','Category','Action','Label',Value]);”

Note – This package is based on assumption that webpages are already rending google event tracking js provided by google.

Sitecore Package is available on Sitecore market marketplace Click here to download