Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
add debugging info to failed GA import email template
Robertcc8bed9c4a5a
diff --git a/lib/plausible_web/templates/email/google_analytics_import.html.eex b/lib/plausible_web/templates/email/google_analytics_import.html.eexindex eaadd1b403..ffb9a5ffaf 100644--- a/lib/plausible_web/templates/email/google_analytics_import.html.eex+++ b/lib/plausible_web/templates/email/google_analytics_import.html.eex@@ -5,7 +5,38 @@ Hey <%= user_salutation(@user) %>,<br /><br /><%= link("Click here", to: @link) %> to view your dashboard.<% else %>- Unfortunately, your Google Analytics import for <%= @site.domain %> did not complete successfully. Please try again <%= if !Application.get_env(:plausible, :is_selfhost) do %>or <%= link("contact support", to: "https://plausible.io/contact") %><% end %>.+ Unfortunately, your Google Analytics import for <%= @site.domain %> did not complete successfully. Sorry about that!+ <br /> <br />++ This may be due to the user metric setting in your Google Analytics account. We found that changing the user metric setting is necessary to get the correct data out of the Google API.+ <br /> <br />++ Please log into your Google Analytics account and go to Admin -> Property Settings -> User Analysis. Then make sure that "Enable User Metric in Reporting" is set to OFF. Then try importing again. You can switch the setting back after the import.+ <br /> <br />++ If you've already changed that setting, then it is something else:+ <br />++ <ul>+ <li>+ Do you have any stats in the Google Analytics property you tried to import? We only import the stats from your first Google Analytics visitor until your first Plausible Analytics visitor. The import fails if there's no returned data from Google from before you counted your first Plausible visitor.+ </li>+ <li>+ Did you set strict data retention limits in your Google Analytics account? You can check the data retention limit you have set for your property in your Google Analytics admin settings by visiting the "Tracking Info" section and clicking on "Data Retention".+ </li>+ </ul>+ <br />++ If all of the above is fine, please try to do the import once again. Sometimes the Google Analytics API just randomly returns empty data. It's intermittent and random. Trying to do the import again may return what you need.++ <%= if !Application.get_env(:plausible, :is_selfhost) do %>+ <br /> <br />++ Please reach out to <%= link("our support", to: "https://plausible.io/contact") %> and let us know if you're still experiencing issues with the import. Thanks!+ <br /> <br />++ The Plausible Team 💌+ <% end %><% end %><br /><br />--