<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.2 20190208//EN" "JATS-journalpublishing1.dtd" [
]>
<article xml:lang="en" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML"
  dtd-version="1.2" article-type="abstract">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">IJPDS</journal-id>
      <journal-title-group>
        <journal-title>International Journal of Population Data Science</journal-title>
        <abbrev-journal-title>IJPDS</abbrev-journal-title>
      </journal-title-group>
      <issn pub-type="epub">2399-4908</issn>
      <publisher>
        <publisher-name>Swansea University</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.23889/ijpds.v11i4.3796</article-id>
      <article-id pub-id-type="publisher-id">11:4:15</article-id>
      <title-group>
        <article-title>Content-Based Classification of URL Domains By Large Language Models</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <name>
            <surname>Cantijoch</surname>
            <given-names initials="M">Marta</given-names>
          </name>
          <xref ref-type="aff" rid="affil-1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Gaughan</surname>
            <given-names initials="C">Conor</given-names>
          </name>
          <xref ref-type="aff" rid="affil-1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Gibson</surname>
            <given-names initials="R">Rachel</given-names>
          </name>
          <xref ref-type="aff" rid="affil-1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Batista-Navarro</surname>
            <given-names initials="R">Riza</given-names>
          </name>
          <xref ref-type="aff" rid="affil-1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Cernat</surname>
            <given-names initials="A">Alex</given-names>
          </name>
          <xref ref-type="aff" rid="affil-1">1</xref>
        </contrib>
      </contrib-group>
      <aff id="affil-1"><label>1</label><institution>University of Manchester, UK</institution></aff>
      <pub-date date-type="pub" publication-format="electronic">
        <day>03</day>
        <month>08</month>
        <year>2026</year>
      </pub-date>
      <pub-date date-type="collection" publication-format="electronic">
        <year>2026</year>
      </pub-date>
      <volume>11</volume>
      <issue>3</issue>
      <elocation-id>3796</elocation-id>
      <permissions>
        <license license-type="open-access" xlink:href="https://creativecommons.org/licences/by/4.0/">
          <license-p>This work is licenced under a Creative Commons Attribution 4.0 International License.</license-p>
        </license>
      </permissions>
      <self-uri xlink:href="https://ijpds.org/article/view/3796">This article is available from the IJPDS website at: https://ijpds.org/article/view/3796</self-uri>
      <kwd-group>
        <kwd>large language models</kwd>
        <kwd>web tracking data</kwd>
        <kwd>URL classification</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec>
      <title>Introduction &amp; Background</title>
      <p>Web tracking provides a valuable source of information across a variety of disciplines, including political science, health, psychology, marketing, economics, and communication. Usually, the digital footprint returned from web trackers includes a series of URLs accompanied by metadata like timestamps or time spent. These data are typically large, unstructured, and can easily become technically challenging to analyse. Traditionally, content-based URL classification required resource-intensive web-scraping and advanced technical expertise. The emergence of Large Language Models (LLMs) offers a potential solution for automating the classification of URL domains quickly and flexibly while reducing technical barriers.</p>
    </sec>
    <sec>
      <title>Objectives &amp; Approach</title>
      <p>We audited the performance of nine state-of-the-art LLMs from OpenAI, Google, and Anthropic in classifying URL domains. The data we used for the analyses included all URLs visited on mobile devices by a sample of 599 participants based in the UK in 2020. The LLMs were tasked with categorising a total of 4,516 unique domains into 17 pre-defined categories, with an additional “unclassified” category. We used a zero-shot approach, i.e. we did not provide any definitions or examples to the LLMs about these categories. Performance was compared against a test set of 200 random domains annotated by a human.</p>
    </sec>
    <sec>
      <title>Relevance to Digital Footprints</title>
      <p>This research directly addresses the challenges of processing internet history records, a key form of digital footprint data. By demonstrating how LLMs can process and categorise large-scale web-tracking data, the study explores new methodologies for enriching linked datasets (e.g. web-tracking linked to survey data), thereby reducing the barriers for social scientists to derive meaningful insights from individual-level online behaviours.</p>
    </sec>
    <sec>
      <title>Results</title>
      <p>Our analyses show that LLMs can perform comparatively well at classifying URL domains into predefined categories. Results suggests a high level of agreement with human annotation (Mean accuracy score: 71%; Mean precision and recall: 74%). These are levels of inter-coder reliability considered more than satisfactory in social science research when using conventional methods (i.e. multiple human coders). We also found that LLM performance is positively correlated with domain popularity; more frequently visited websites are classified with significantly higher accuracy.</p>
    </sec>
    <sec>
      <title>Conclusions &amp; Implications</title>
      <p>LLMs can drastically improve the speed and efficiency of URL domain classification at scale. While zero-shot performance is already impressive, further prompting engineering may enhance accuracy. Notwithstanding important privacy, transparency and environmental concerns, LLMs can become an equalising tool, making advanced web-tracking analysis more accessible and affordable for researchers.</p>
    </sec>
  </body>
</article>