Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Cookies and Queries list #1

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ composer require php-cmsig/http-list

## Usage

TODO
### Query List

```php
use PhpCmsig\HttpList\Cookies;

Cookies::getCookies();
```

### Query List

```php
use PhpCmsig\HttpList\Queries;

Queries::getQueries();
```
61 changes: 61 additions & 0 deletions src/Cookies.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?php

namespace PhpCmsig\HttpList;

class Cookies
{
/**
* @return string[]
*/
public static function getCookies(): array
{
return [
// Google Analytics
// https://developers.google.com/analytics/devguides/collection/analyticsjs/cookie-usage
'_ga.*',
'_gid',
'_dc_gtm_.+',
'AMP_TOKEN',
'__utm.+',

// Google Conversion Linker
// https://support.google.com/tagmanager/answer/7549390
'_gcl.*',

// Matomo
// https://matomo.org/faq/general/faq_146/
'_pk_id.*',
'_pk_ref.*',
'_pk_ses.*',
'_pk_cvar.*',
'_pk_hsr.*',

// Cloudflare
'__cfduid',
'cf_clearance',
'cf_use_ob',
'cf_ob_info',

// Facebook Pixel
'_fbp',

// Blackfire
'__blackfire',

// Tideways
'TIDEWAYS_SESSION',

// Litespeed HTTP2 Smart Push
'ls_smartpush',

// Osano Cookie Consent
'cookieconsent_status',

// Cookiebot Cookie Consent
'CookieConsent',

// Cypress
'__cypress_initial',
];
}
}
73 changes: 73 additions & 0 deletions src/Queries.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?php

namespace PhpCmsig\HttpList;

class Queries
{
/**
* @return string[]
*/
public static function getQueries(): array
{
return [
'L',
// Matomo
'mtm_campaign',
'mtm_keyword',
'mtm_kwd',
'mtm_source',
'mtm_medium',
'mtm_content',
'mtm_cid',
'mtm_group',
'mtm_placement',
// Piwik
'pk_campaign',
'pk_kwd',
'_stg_debug',
// Google
'utm_source',
'utm_medium',
'utm_campaign',
'utm_term',
'utm_content',
'utm_id',
'utm_source_platform',
'utm_creative_format',
'utm_marketing_tactic',
'gtm_debug',
'_gl',
// Google ads
'gad',
'gclid',
'dclid',
// Facebook
'fbclid',
// Microsoft Bing Ads.
'msclkid',
// HubSpot Ad Tracking Parameters
'hsa_acc',
'hsa_ad',
'hsa_cam',
'hsa_grp',
'hsa_kw',
'hsa_mt',
'hsa_net',
'hsa_src',
'hsa_tgt',
'hsa_ver',
'hsa_ol',
'hsa_la',
// HubSpot Email Tracking Parameters
'_hsenc',
'_hsmi',
// HubSpot CTA Tracking Parameters
'__hssc',
'__hstc',
'__hsfp',
'hsCtaTracking',
// HubSpot Form Tracking Parameters
'submissionGuid',
];
}
}