site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

AdSense panel - Restricted metric(s)- Convert the referenced URL to a link

Open jamesozzie opened this issue 7 years ago • 3 comments

Bug Description

There is a referenced URL for when a user adds the AdSense panel (The referenced URL appears in a blue panel, "Restricted Metric(s)"). It appears when a user does not connect AdSense to their Analytics. Rather than just referencing the URL this could be converted to a link, allowing for easier navigation to that resource.

Steps to reproduce

  1. Add AdSense module
  2. Don't connect AdSense to Analytics
  3. Visit the main Site Kit dashboard (AdSense panel)

Screenshots

R7uZmkhoF5c

Additional Context

  • PHP Version:
  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Plugin Version [e.g. 22]
  • Device: [e.g. iPhone6]

Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • The Analytics API error message about "Restricted metric(s)" that can be returned when AdSense is active but not linked to the active Analytics property should be enhanced so that the URL included in the message is rendered as an actual (external) link.

Implementation Brief

Test Coverage

Visual Regression Changes

QA Brief

Changelog entry

jamesozzie avatar Jul 02 '19 09:07 jamesozzie

@felixarntz - @wpdarren and I have been unable to recreate this issue. It seems to be quite old as well - wondering if it is still a problem?

johnPhillips avatar Apr 21 '21 09:04 johnPhillips

@johnPhillips I can have a look at trying to recreate this and come back to you.

wpdarren avatar Apr 21 '21 13:04 wpdarren

@johnPhillips @wpdarren Oh you're right - apologies, I missed that we had already prevented this error to show up. In such a case the user now already always sees the AdSenseLinkCTA component output, which is good as is.

felixarntz avatar Apr 21 '21 16:04 felixarntz