[Python] Addings Tags for Google Tag Manager in Python

Discussão em 'Python' iniciado por Stack, Março 9, 2025.

  1. Stack

    Stack Membro Participativo

    I am now having issues uploading tags from python to gtm. It is all connected, I am using the measurement id from gtm but it keeps telling me its missing?

    ga_tag={
    "name": "gameNameTestTag",
    "type": "gaawe",
    "parameter": [
    { "type":"template",
    "key": "measurementId",
    "value": " G-XXXXXXX" },
    {"type":"template","key": "eventName","value": 400 }


    ]


    }

    tag_response = service.accounts().containers().workspaces().tags().create(
    parent=f"accounts/{ACCOUNT_ID}/containers/{CONTAINER_id}/workspaces/{WORKSPACE_ID}",
    body=ga_tag).execute()

    Continue reading...

Compartilhe esta Página