Description Usage Arguments Details Value Examples
View source: R/ps_simple_1_s.R
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 4.
1 2 3 4 |
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" |
interval |
numeric. Number of seconds to wait between multiple queries. Defaults to 0.5 second. |
filter_third_party |
logical. Indicates if third party resources should be filtered out before PageSpeed analysis. Defaults to NULL (= FALSE) |
locale |
string. The locale used to localize formatted results |
rule |
string. A PageSpeed rule to run; if none are given, all rules are run |
screenshot |
logical. Indicates if binary data containing a screenshot should be included. Defaults to NULL (= FALSE) |
snapshots |
logical. Indicates if binary data containing snapshot images should be included. Defaults to NULL (= FALSE) |
utm_campaign |
string. Campaign name for analytics. Defaults to NULL |
utm_source |
string. Campaign source for analytics. Defaults to NULL |
This function uses legacy version 4 of the API.
Check function lh_raw_1()
for version 5.
If you need all the information but in form of a nested list,
use ps_raw_1()
.
formatted data frame
1 2 3 4 | ## Not run:
single_url_simple_output <- ps_simple_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.