How to add Google tag manager globally to SharePoint Online

A solution to add google tag manager has being requested a few times to me since I released the solutions to add Google Analytics to SharePoint.

In this article you will find a pre-built solution to add Google tag manager to modern SharePoint Online using an Application Customizer.

(more…)

Get site collection URL after creating a Group using Microsoft Graph

When creating groups or teams using Microsoft Graph and PowerShell the SharePoint site collection URL can be randomly generated if a site collection with the name of the group already exists.

If you need to get the URL of the site collection right after the creation of the group, you can use Microsoft Graph to retrieve it.

This can be extremely helpfully for scenarios where you have the need to deploy artifacts to the site automatically, like applying a PnP Template.

Right after the group creation use do the request bellow using the group ID.

(more…)

Deploy Application Insights globally on modern SharePoint

On my last article I’ve provided a solution to deploy Application Insights to classic SharePoint without modifying the master page and on todays article I’m providing the same solution but for modern SharePoint using an Application Customizer and Tenant Wide Deployment.

(more…)

How to add Application Insights to SharePoint without modifying the master page

Google analytics articles are among the most popular articles in this blog and inclusive they got featured on SharePoint Dev Weekly episodes.

On episode #27 Vesa and Waldek discussed the advantages and disadvantages of having internal and potentially confidential data sent from SharePoint to Google servers.

Google Analytics is not the only monitoring tool you can add to SharePoint, Microsoft has Application Insights that provides a similar functionality with the advantage of keeping your data in the same ecosystem.

(more…)

Deploy Google Analytics globally on modern SharePoint

Google Analytics articles are very popular in this blog and there are a few already available here, here and here but there is still room for one more, as the SharePoint Framework evolves so does this solution.

Today’s article introduces an easy way to deploy Google Analytics globally to all modern sites in your tenant taking advantage of the Tenant Wide Deployment.

(more…)

Convert Classic root sites to Modern SharePoint

Recently I’ve got a few requests to transform classic root team sites with publishing enabled into modern SharePoint sites.

The technic described in this article allows you to keep all your existent content, and at the same time allows you to take advantage of the out of the box responsive layouts and modern web parts.

Info: If you want to convert the root site of your tenant to modern have a look at this new article that explains how to use the site swap feature recently released by Microsoft.

(more…)

Adapt SPFx components to SharePoint Mobile APP and Microsoft Teams environments

Modern SharePoint sites rendered on SharePoint Mobile App or Microsoft Teams are different than when displayed in the browser.

Native components are removed from the page or replaced by native APP options. If you are building extensions or web parts for the modern SharePoint you may want to test them in both environments to make sure they are not overlapping with native apps features.

While the framework does not provide context variables to let developers know where the component is running, it needs to be validated through the user agent.

(more…)

What’s new on SharePoint Framework 1.7

What is probably the most important release of SharePoint Framework since its original version, brings a list of long-awaited features, already showcased during Microsoft Ignite. In this article, I will highlight three:

  • Application Pages
  • SharePoint Web Parts on Microsoft Teams
  • List Subscriptions

This version is no longer exclusive to SharePoint and is available also to extend Microsoft Teams. Version 1.7 might be the start of the Office 365 framework, as it starts being used on other products. It will definitely allow for a smoother, more coherent experience across the workplace and its different applications.

(more…)

Find your way inside Teams with breadcrumb navigation for SharePoint sites

SharePoint and Teams will soon have a lot in common with the SharePoint framework being used as a base foundation to extend both platforms. While we can’t get our hands on that, I’ve decided to build a solution that makes navigation between SharePoint sites and pages inside Microsoft Teams a little bit easier.

(more…)

How to get SharePoint profile picture

Profile pictures allow you to easily identify users and on SharePoint there are a couple different ways to get it.

If you are developing SharePoint solutions and need to display profile pictures you can use one of the methods described below.

These methods are target for SharePoint online and they will not work for external users and for accounts without Exchange.

(more…)


Web developer focused on SharePoint branding, blogger, tech enthusiast. Travelling and sports are my addictions, knowledge and success are my daily motivations.