Microsoft365
PowerShell
In this blog post, we will explore how to use PowerShell to set up Microsoft Clarity for a SharePoint portal SiteCollection. This can be useful if you want to gain insights into how users interact with your SharePoint portal and optimize the user experience.
Introduction
- Identify areas of your portal that are causing confusion or frustration for users.
- Optimize the user experience by making changes based on user behavior.
- Improve website performance by identifying and fixing issues that are causing users to leave your portal.
Prerequisites
Before we get started, there are a few prerequisites that you will need:
- A SharePoint Online site where you have permission to add custom actions.
- PowerShell 7.2 or later installed on your computer.
- The PnP PowerShell module installed on your computer.
- A Microsoft Clarity account. You can sign up for a free account at https://clarity.microsoft.com/.
Get the Product ID of the Clarity App. You will need it in the script.
Define the scope of the App
Select if you want to install the App for the whole tenant or only for specific sites.Add Clarity App to SiteCollection
The Script
|
|
Finally, the script checks if the custom action was installed successfully using the Get-PnPCustomAction cmdlet.
Conclusion
Comments
You can use your Mastodon account to reply to this post. Learn how this is implemented here.
Reply to ollimenzel’s post
With an account on the Fediverse or Mastodon, you can respond to this post.
Since Mastodon is decentralized, you can use your existing account hosted by another Mastodon server or compatible platform if you don’t have an account on this one.
Copy and paste this URL into the search field of your favourite Fediverse app or the web interface of your Mastodon server.
This article covers how to help with updating site logo and thumbnail in a scalable and repeatable manner during site provisioning using PnP PowerShell , REST and CLI for Microsoft 365.
Set by providing the absolute or relative URL to a file on the current site collection url
# Set the Site Thumbnail URL
Set by providing the absolute or relative URL to a file on the current site collection url
"Ensure logged in"
PnP PowerShell
# Set the Site Thumbnail URL
CLI for M365
"Ensure logged in"
REST API
The endpoint siteurl/_api/siteiconmanager/setsitelogo can be used to update the thumbnail and logo and the differentiation is the aspect property passed as data.
References
Change a site’s title, description, logo, and site information settings
spo site set