Posts

Showing posts from October, 2020

Rest API for Delete Yammer Comments

Yammer is providing  Documentation  on Rest API and they are very proactive in updating those over time period. I was working on rest API for delete yammer comment in my SharePoint site using   jQuery. Rest API : https://www.yammer.com/api/v1/messages/:message_id here, message_Id : numeric value of message id Method : Delete Let me explain this with one example : function deleteComment ( MessagePostId ) { var result = confirm( "Are you sure you want to delete this Comment?" ); if (result) { yam.platform.request({ url : "https://api.yammer.com/api/v1/messages/" + MessagePostId, method : "DELETE" , async : false , beforeSend : function ( xhr ) { xhr.setRequestHeader( 'Authorization' , token) }, success : function ( res ) { alert( "The Comment has been deleted." ); //Code to remove item from array and display rest of the comment ...

How to Set Up Google Analytics Event Tracking With Google Tag Manager (GTM)

Image
I recently worked on GA for my site. So I thought to share it with you guys. (By the way this is my first blog 😃) You can track users' interactions in site like button click, link click, scrolling, form submission, PDF downloads etc.. Event tracking allows you to send event user-triggered interactions to Google Analytics. Every event can have 4 fields/data points: • Event Category (required) • Event Action (required) • Event Label (optional) • Value (optional) Event Category is the broadest value and as you go deeper, they get narrower, for example: 1. Category – form 2. Action – newsletter subscription 3. Label – sitename.com/blog/article-page 4. Value – 1 Steps to add Tags, Events and user defined variable. 1. Log into Google Tag Manager. 2. Select “Tags” from the left-hand side. 3. Create a new tag. 4. Select Universal Analytics from Tag Type. 5. Set your Google Analytics Tracking ID. 6. Choose “Event” for the track type. 7. Set your Event Category, Action, Labe...