Google Ads · Track a conversionStep 1 of 3

Track ViewContent

The ViewContent event fires when a visitor opens a product detail or service detail page. Google Ads uses this signal in Smart Bidding and Customer Match retargeting audiences. It’s an upper-funnel signal — don’t optimize bids toward it directly, but feed it to Google so the audience is rich.

1. Create the ViewContent conversion action in Google Ads

ViewContent doesn’t have a dedicated category in Google Ads — we’ll create it under the Page view (or, on older UIs, Other) category. It’s intentionally tracked as a secondary conversion, not something Smart Bidding optimizes toward directly.

Skip this section if you already have a ViewContent / page-view conversion action set up — jump to step 2.

  1. 1.1 — Sign in to ads.google.com

    Open ads.google.com with the Google account that has Admin or Standard access.

  2. 1.2 — Open the Conversions page

    Left navigation → Goals (Hedefler) → Conversions (Dönüşümler) → Summary (Özet).

  3. 1.3 — Click “+ New conversion action”

  4. 1.4 — Pick “Website” as the data sourceMost important step

    Pick Website (Web sitesi). Do NOT pick Phone calls, App, Import, or GA4 — AdsPing only fires to website-sourced conversions. (See the equivalent warning on the Purchase page for full detail.)

    Click Save and continue.

  5. 1.5 — Pick the conversion category

    ViewContent isn’t one of Google Ads’ named goals (Purchase, Lead, etc.). Pick whichever of these your UI version offers:

    Page view — Sayfa görüntüleme

    If your Google Ads UI shows it. Newer UIs hide this under “Other”.

    Other — Diğer / Custom

    Fallback if Page view isn’t listed. Pick this and give it a clear name in the next step.

    Click Save and continue.

  6. 1.6 — Recommended settings on the details page

    • · Conversion name: “ViewContent — [your store]” so you can identify it later.
    • · Value: Use different values for each conversion — AdsPing sends the product price (helps build a value-aware retargeting audience).
    • · Count: One — one ViewContent per visitor per session is enough signal. Setting Every can flood reporting if a visitor browses many pages.
    • · Click-through window: 30 days.
    • · Attribution model: Data-driven.
    • · Include in “Conversions”: No — ViewContent is an upper-funnel signal, not a bid-optimization goal. Setting Yes would make Smart Bidding optimize toward page views instead of purchases / leads, ruining your ROAS.

    Click Done, then Save and continue.

  7. 1.7 — Skip the tag-setup screen

    You don’t need to install Google’s tag. Click Done and exit the wizard.

  8. 1.8 — Copy the Conversion Action ID

    Click your new ViewContent action and copy the number after ctId= in the URL bar.

    https://ads.google.com/aw/conversions/customers/3884688380/detail?ctId=987654321

2. Wire the action in AdsPing

  1. 2.1 — Open your pixel → Destinations tab → Add action on the Google Ads card.
  2. 2.2 — Fill the form:
    • Name: “ViewContent — [your store]”
    • Customer: pre-filled.
    • Conversion action: pick the ViewContent action you created in step 1.
    • Event name filter: ViewContent
  3. 2.3 — Save. See wizard Step 3 for screenshots.

3. Copy the snippet

Use template variables to fill in the real product’s name, SKU, and price — not the static example below.

Option A — pbq (recommended)

product-page.html
<!-- Place inside the <body> of your product / service detail page,
     AFTER the AdsPing script in <head>. -->
<script>
  pbq('track', 'ViewContent', {
    content_name: 'Acme Hydrating Serum',
    content_ids: ['SKU-1043'],
    content_type: 'product',
    value: 24.90,
    currency: 'USD'
  });
</script>

Option B — dataLayer

product-page.html
<!-- Place inside the <body> of your product / service detail page,
     AFTER the AdsPing script in <head>. -->
<script>
  window.dataLayer = window.dataLayer || [];
  window.dataLayer.push({
    event: 'view_content',
    ecommerce: {
      value: 24.90,
      currency: 'USD',
      items: [
        { item_id: 'SKU-1043', item_name: 'Acme Hydrating Serum' }
      ]
    }
  });
</script>

4. Where to paste the snippet

Paste it inside the <body> of your product detail page template. One paste covers every product on your catalog.

5. Test it

Open any product page in a fresh tab. A ViewContent row appears in Recent Events within 10 seconds with a green Success badge.

✓ ViewContent is live.

Google Ads will start using product page visits as a Smart Bidding signal and as a seed for retargeting audiences.