The Google Analytics Trash Can has been a self-serve saviour to many who accidentally deleted a property. Now, Google has also created a Trash Can for Google Tag Manager.
Full instructions on how to restore your Google Tag Manager account or container are in this support article.
What’s important to know is that if more than 30 days has passed from the trashed date, the deleted item is permanently deleted with no possibility of recovery.
Therefore, it’s very important that any deletion be detected promptly.
A steep drop in traffic is a sure sign of a problem. Therefore, we suggest you set up two Custom Alerts in Google Analytics to signal to you:
- If your traffic drops by more than 95% in a day, compared to same day last week
- If your traffic drops by more than 50% week over week.
This gives you multiple chances to catch the accidental deletion of your Google Tag Manager work (or some other drastic problem with your website).
The image below and these steps show you how you can create the daily alert:
- Go to the “Admin” area in Google Analytics
- Under the “View” column, select Custom Alerts. On the next screen, click on the button that allows you to create a new alert.
- Name the alert.
- Decide which Views you want apply this alert to, and select “Day” for a daily comparison alert.
- Select the check box to send an email alert to your signin ID.
- Decide if you also want to send an email alert to any other email ID. Note: These email IDs should be company IDs, not personal IDs (e.g. gmail, hotmail, etc.) to maintain confidentiality.
- Select the option of “% decreases more than” and enter 95% in entry field,
- Compare to same day last week rather than previous day. This alert will be active for 7 days in a row.
For more about setting up Custom Alerts, read this Google support article.
Because only the signin ID that created the alert can edit recipients or conditions, or delete the alert, the alert should be set up under a site owner’s signin, not by an agency or consultant.
If there have been alerts generated, you can find them in Google Analytics report under Intelligence Events.
Let’s hope you never receive one of these alerts. If you do, check if your code is still on the page. If not, check both the Google Analytics and the Google Tag Manager Trash Cans.
Image: Adapted from git.mate-desktop.org