How to efficiently set page attribute information on the datalayer
I would like to add attribute information to each page of our website.
Adobe Analytics has a classification function, but considering the linkage to CDP and other tools , we would prefer to place the information in the datalayer.
Example
URL: https://XXXX Attribute: for accountants, blog page,...
URL: https://YYYY Attributes: for marketing, Product Page,...
However, we manage thousands of pages, and it is difficult to specify rules by URL in a batch.
How can we efficiently assign attribute information in such cases?
Currently, I am considering either of the following two options, but neither is efficient.
-Directly assign attribute information to each page as tags and store them directly from HTML to the datalayer.
-Mapping URLs and attribute information in a spreadsheet using URLs as keys, and outputting the mapping information in json format and storing it in the datalayer via a tag manager.
Thanks in advance.