- From: Juan Carlos Palacios Chavez <jcpalaci@mx1.ibm.com>
- Date: Thu, 17 Sep 2015 09:08:11 -0500
- To: public-custexpdata@w3.org
- Message-ID: <OF809AB910.BA840298-ON86257EC3.004C8453-86257EC3.004DA797@mx1.ibm.com>
Hi there I am trying to understand the way a user can build the digitalData object, since we have to parse the documents in order to find the information stored there. In general, I understand the specification, but I have a few questions I would like you to help me understand: In the specification, a few examples are used, and they give me the impression we can use multiple expressions to build the digitalObject across the document.. Instead of having the digitalObject definition in one single expression (using one single object literal), can we use different expressions (like my example below) to define digitalData? Are we supposed to define digitalObject in the head? Can be spread across the document (body)? Can we use variables to build values? Like "productURL": basePath + 'path' digitalData = { page: { category: { primaryCategory: 'SB03' }, pageInfo: { effectiveDate: '2015-05-14', expiryDate: '2017-12-18', language: 'en-US', ibm: { ... }, } } }; .... digitalData.page.pageInfo.maxymiser: { "synchronous": true }; .... var basePath = 'http://www.server.com/'; digitalData.product = []; digitalData.product[0] = { productID: "testID", 'productName': "testName", "productURL": basePath + 'path' }; Thanks in advance Best regards JC Juan Carlos Palacios UX Developer - IBM Client Innovation Center Phone: +52-33-3669-7000 x4321 Mobile: 52-33-1150-6292 E-mail: jcpalaci@mx1.ibm.com
Received on Friday, 18 September 2015 08:15:50 UTC