Shahi LegalFlowSuite

Run Your First Cookie Scan

Discover and Categorize All Cookies on Your Website

Understanding Cookie Scanning

What the Scanner Does

Cookie Detection:

    1. Automatically finds all cookies set by your website
    2. Identifies first-party and third-party cookies
    3. Detects cookies from embedded content (iframes, scripts)
    4. Scans dynamic content loaded via AJAX
    5. Cookie Analysis:

    6. Determines cookie purpose and category
    7. Identifies data retention periods
    8. Flags potentially non-compliant cookies
    9. Provides cookie management recommendations
    10. Compliance Reporting:

    11. Generates cookie inventory reports
    12. Creates consent banner categories
    13. Produces legal documentation updates
    14. Tracks cookie changes over time
    15. Prepare for Your First Scan

      Step 1: Enable Cookie Scanner Module

      `
      SLOS → Dashboard → Module Management
      `

      Required Settings:

    16. [x] Cookie Scanner: Enabled
    17. [x] Consent Management: Enabled (for categorization)
    18. [x] Database access: Verified
    19. Step 2: Configure Scan Settings

      `
      SLOS → Consent Management → Cookie Scanner → Settings
      `

      Basic Configuration:
      `json
      {
      “scan_depth”: “comprehensive”,
      “include_subpages”: true,
      “max_pages”: 50,
      “scan_frequency”: “manual”,
      “user_agent”: “SLOS Cookie Scanner v3.1.1”,
      “timeout”: 30,
      “retry_attempts”: 3
      }
      `

      Step 3: Set Up Scan Permissions

      `
      SLOS → Consent Management → Cookie Scanner → Permissions
      `

      Required Permissions:

    20. [x] Read website content
    21. [x] Access database tables
    22. [x] Write scan results
    23. [x] Send notifications
    24. Run Your First Scan

      Step 1: Start Manual Scan

      `
      SLOS → Consent Management → Cookie Scanner → Run Scan
      `

      Scan Options:
      `json
      {
      “scantype”: “fullsite”,
      “start_url”: “https://yourwebsite.com”,
      “crawl_depth”: 3,
      “respectrobotstxt”: true,
      “scan_javascript”: true,
      “scan_iframes”: true,
      “follow_redirects”: true
      }
      `

      Step 2: Monitor Scan Progress

      `
      SLOS → Consent Management → Cookie Scanner → Scan Status
      `

      Progress Indicators:

    25. Pages scanned: 0/50
    26. Cookies found: 0
    27. Time elapsed: 00:00:00
    28. Estimated completion: Calculating…
    29. Real-time Updates:

    30. Current page being scanned
    31. Cookies discovered
    32. Errors encountered
    33. Performance metrics
    34. Review Scan Results

      Step 1: View Cookie Inventory

      `
      SLOS → Consent Management → Cookie Scanner → Results → Cookie Inventory
      `

      Cookie List Columns:

    35. Cookie Name
    36. Domain
    37. Category
    38. Purpose
    39. Retention Period
    40. HttpOnly/Secure Flags
    41. First/Third Party
    42. Step 2: Analyze Categories

      Essential Cookies (Usually 5-15):
      `json
      [
      {
      “name”: “PHPSESSID”,
      “domain”: “.yourwebsite.com”,
      “category”: “essential”,
      “purpose”: “Session management”,
      “retention”: “Session”
      },
      {
      “name”: “wordpressloggedin_”,
      “domain”: “.yourwebsite.com”,
      “category”: “essential”,
      “purpose”: “User authentication”,
      “retention”: “2 weeks”
      }
      ]
      `

      Analytics Cookies (Usually 5-10):
      `json
      [
      {
      “name”: “_ga”,
      “domain”: “.google-analytics.com”,
      “category”: “analytics”,
      “purpose”: “Google Analytics tracking”,
      “retention”: “2 years”
      },
      {
      “name”: “_gid”,
      “domain”: “.google-analytics.com”,
      “category”: “analytics”,
      “purpose”: “Google Analytics session tracking”,
      “retention”: “24 hours”
      }
      ]
      `

      Marketing Cookies (Usually 10-50):
      `json
      [
      {
      “name”: “fr”,
      “domain”: “.facebook.com”,
      “category”: “marketing”,
      “purpose”: “Facebook advertising”,
      “retention”: “3 months”
      },
      {
      “name”: “NID”,
      “domain”: “.google.com”,
      “category”: “marketing”,
      “purpose”: “Google advertising”,
      “retention”: “6 months”
      }
      ]
      `

      Categorize Uncategorized Cookies

      Step 1: Review Uncategoried Cookies

      `
      SLOS → Consent Management → Cookie Scanner → Results → Uncategoried
      `

      Categorization Process:

    43. Read cookie description
    44. Determine primary purpose
    45. Assign appropriate category
    46. Set retention period
    47. Add legal basis
    48. Step 2: Manual Categorization

      For Each Uncategoried Cookie:
      `json
      {
      “cookiename”: “customtracking_id”,
      “domain”: “.yourwebsite.com”,
      “category”: “analytics”, // essential, analytics, marketing, preferences
      “purpose”: “Custom analytics tracking”,
      “retention”: “1 year”,
      “legal_basis”: “consent”,
      “data_shared”: false,
      “third_party”: false
      }
      `

      Step 3: Bulk Categorization

      `
      SLOS → Consent Management → Cookies → Bulk Actions
      `

      Bulk Operations:

    49. Assign category to multiple cookies
    50. Set retention periods
    51. Mark as first/third party
    52. Flag for legal review
    53. Update Consent Banner

      Step 1: Sync Categories with Banner

      `
      SLOS → Consent Management → Banner Settings → Categories
      `

      Banner Category Mapping:
      `json
      {
      “essential”: {
      “enabled”: true,
      “required”: true,
      “description”: “Required for website functionality”,
      “cookies”: [“PHPSESSID”, “wordpress_“, “wp-“]
      },
      “analytics”: {
      “enabled”: true,
      “required”: false,
      “description”: “Help us improve our website”,
      “cookies”: [“ga”, “gid”, “gat”, “customanalytics”]
      },
      “marketing”: {
      “enabled”: true,
      “required”: false,
      “description”: “Used for advertising and marketing”,
      “cookies”: [“fr”, “NID”, “ads/*”, “doubleclick”]
      }
      }
      `

      Step 2: Update Banner Text

      `
      SLOS → Consent Management → Banner Settings → Content
      `

      Dynamic Cookie Count:
      `javascript
      // Automatically update cookie counts
      const cookieCounts = {
      essential: getCookieCount(‘essential’),
      analytics: getCookieCount(‘analytics’),
      marketing: getCookieCount(‘marketing’)
      };

      // Update banner text
      document.querySelector(‘.cookie-count-essential’).textContent = cookieCounts.essential;
      document.querySelector(‘.cookie-count-analytics’).textContent = cookieCounts.analytics;
      document.querySelector(‘.cookie-count-marketing’).textContent = cookieCounts.marketing;
      `

      Generate Cookie Policy

      Step 1: Auto-Generate from Scan

      `
      SLOS → Legal Documents → Generate → Cookie Policy
      `

      Policy Sections Created:

    54. Introduction to cookies
    55. Types of cookies used
    56. Detailed cookie list with descriptions
    57. Cookie management instructions
    58. Third-party cookie information
    59. Step 2: Review and Customize

      `
      SLOS → Legal Documents → Edit → Cookie Policy
      `

      Customization Options:

    60. Add company-specific language
    61. Include additional legal disclaimers
    62. Add cookie preference center links
    63. Customize cookie descriptions
    64. Set Up Ongoing Monitoring

      Step 1: Configure Automated Scans

      `
      SLOS → Consent Management → Cookie Scanner → Schedule
      `

      Recommended Schedule:
      `json
      {
      “frequency”: “weekly”,
      “dayofweek”: “monday”,
      “time”: “02:00”,
      “scan_type”: “incremental”,
      “alertonchanges”: true,
      “alert_recipients”: [“privacy@yourcompany.com”]
      }
      `

      Step 2: Configure Alerts

      `
      SLOS → Consent Management → Cookie Scanner → Alerts
      `

      Alert Types:

    65. [x] New cookies detected
    66. [x] Cookies removed
    67. [x] Category changes required
    68. [x] Scan failures
    69. [x] Compliance issues
    70. Test Cookie Management

      Step 1: Test Consent Functionality

      `
      SLOS → Consent Management → Test Mode
      `

      Testing Scenarios:

    71. Accept all cookies
    72. Reject all cookies
    73. Accept only essential
    74. Custom preferences
    75. Withdraw consent
    76. Step 2: Verify Cookie Behavior

      With Consent Granted:

    77. [ ] Analytics cookies set
    78. [ ] Marketing pixels load
    79. [ ] Tracking scripts execute
    80. [ ] User preferences saved
    81. With Consent Denied:

    82. [ ] Analytics cookies blocked
    83. [ ] Marketing pixels disabled
    84. [ ] Tracking scripts prevented
    85. [ ] Graceful degradation
    86. Handle Special Cases

      Step 1: Embedded Content Cookies

      `
      SLOS → Consent Management → Cookie Scanner → Embedded Content
      `

      Common Embedded Content:

    87. YouTube videos
    88. Vimeo players
    89. Social media widgets
    90. Chat widgets
    91. Payment processors
    92. Handling Strategy:
      `javascript
      // Lazy load embedded content
      function loadEmbeddedContent(category, contentId) {
      if (window.SLOS.hasConsent(category)) {
      loadContent(contentId);
      } else {
      showPlaceholder(contentId);
      }
      }
      `

      Step 2: Dynamic Cookies

      `
      SLOS → Consent Management → Cookie Scanner → Dynamic Cookies
      `

      JavaScript-Generated Cookies:

    93. User interaction cookies
    94. Form submission cookies
    95. Shopping cart cookies
    96. Preference cookies
    97. Detection Methods:

    98. JavaScript analysis
    99. Network request monitoring
    100. DOM manipulation tracking
    101. Event listener monitoring
    102. Generate Compliance Reports

      Step 1: Create Cookie Audit Report

      `
      SLOS → Reports → Compliance → Cookie Audit
      `

      Report Contents:

    103. Executive summary
    104. Cookie inventory
    105. Categorization status
    106. Compliance gaps
    107. Recommendations
    108. Step 2: Schedule Regular Reports

      `
      SLOS → Reports → Schedule → Cookie Compliance
      `

      Reporting Schedule:

    109. Weekly: Cookie changes
    110. Monthly: Full compliance audit
    111. Quarterly: Comprehensive review
    112. Annually: Regulatory compliance
    113. Troubleshooting Scan Issues

      Common Problems

      Scan Not Starting:

    114. Check module activation
    115. Verify permissions
    116. Review server resources
    117. Check network connectivity
    118. Incomplete Results:

    119. Increase timeout settings
    120. Reduce scan depth
    121. Check for blocked pages
    122. Review error logs
    123. Cookies Not Detected:

    124. Enable JavaScript scanning
    125. Check iframe permissions
    126. Review cookie settings
    127. Test with different browsers
    128. Categorization Errors:

    129. Update cookie database
    130. Review vendor documentation
    131. Manual categorization
    132. Community resources
    133. Performance Optimization

      Step 1: Optimize Scan Settings

      `
      SLOS → Consent Management → Cookie Scanner → Performance
      `

      Optimization Settings:
      `json
      {
      “concurrent_scans”: 2,
      “pageloadtimeout”: 15,
      “resource_timeout”: 10,
      “cache_results”: true,
      “compress_data”: true
      }
      `

      Step 2: Resource Management

    134. Schedule scans during low-traffic hours
    135. Limit scan scope for large sites
    136. Use incremental scanning
    137. Monitor server resources
    138. Next Steps

      Immediate Actions

    139. Review and finalize cookie categories
    140. Update consent banner
    141. Publish cookie policy
    142. Test consent functionality
    143. Ongoing Tasks

    144. Monitor cookie changes
    145. Regular compliance audits
    146. Update cookie policies
    147. Train staff on procedures
    148. Advanced Features

    149. Set up cookie preference center
    150. Implement consent analytics
    151. Configure third-party integrations
    152. Automate compliance workflows
    153. Support Resources

      Documentation

    154. Consent Management Overview
    155. Cookie Scanner Configuration
    156. Banner Customization
    157. Help

    158. Cookie scanning FAQ
    159. Vendor cookie documentation
    160. Compliance consultation
    161. Technical support

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket