小编Yas*_*oni的帖子

GoogleTagManager警告:Builder中的意外类型:(null)

我正在使用GoogleTagManager来实施增强型电子商务(Google Analytics)我尝试将以下dataLayer推送到GTM.

 [dataLayer push:@{@"event",@"purchase",
                @"ecommerce": @{
                @"purchase": @{
                  @"actionField": @{
                    @"id": @"T12345",                         // Transaction ID. Required for purchases and refunds.
                    @"affiliation": @"Online Store",
                    @"revenue": @"35.43",                     // Total transaction value (incl. tax and shipping)
                    @"tax":"4.90",
                    @"shipping": @"5.99",
                    @"coupon": @"SUMMER_SALE"},
                  @"products": @[                             // List of productFieldObjects.
                    @{@"name": @"Triblend Android T-Shirt",   // Name or ID is required.
                      @"id": @"12345",
                      @"price": @"15.25",
                      @"brand": @"Google",
                      @"category": @"Apparel",
                      @"variant": @"Gray",
                      @"quantity": @1,
                      @"coupon": @""},                        // Optional fields may be omitted or set to empty string.
                    @{@"name": …
Run Code Online (Sandbox Code Playgroud)

analytics google-analytics ios google-tag-manager

5
推荐指数
1
解决办法
718
查看次数