Description Usage Arguments Details Value Examples
This function can check a single URL (character) and parse the output into a data frame. This data frame contain all the possible information from Pagespeed ver 5.
1 2 3 |
url |
string. The URL to fetch and analyze |
key |
string. Pagespeed API key to authenticate. Defaults to "PAGESPEED_API_KEY" enviroment variable. |
strategy |
string. The analysis strategy to use. Options: "desktop" or "mobile". Defaults to "desktop" |
categories |
string. A Lighthouse category to run. Defaults to "performance". See more in Details section |
interval |
numeric. Number of seconds to wait between multiple queries. Defaults to 0.5 second. |
locale |
string. The locale used to localize formatted results |
utm_campaign |
string. Campaign name for analytics. Defaults to NULL |
utm_source |
string. Campaign source for analytics. Defaults to NULL |
This function uses version 5 of the API.
Check function ps_raw_1()
for version 4.
If you need less information but in form of a data frame,
use lh_simple_1()
.
The category
parameter regulates which of the tests'
categories from Lighthouse are to be run. You can select more than
one.
Options: "accessibility", "best-practices", "performance", "pwa",
"seo".
nested list
1 2 3 4 | ## Not run:
single_url_raw_output_5 <- lh_raw_1("https://www.google.com/")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.