• 17-02-2024, 14:21:16
    #1
    Kimlik doğrulama veya yönetimden onay bekliyor.
    diğer pixel kodunu head etiketlerinin arasına yapıştırdım sıkıntı yok fakat bu kod nereye yapışacak çözemedim arkadaşlar bilen var mı?

    // add this before event code to all pages where PII data postback is expected and appropriate 
    ttq.identify({
        "email": "<hashed_email_address>", // string. The email of the customer if available. It must be hashed with SHA-256 on the client side.
        "phone_number": "<hashed_phone_number>", // string. The phone number of the customer if available. It must be hashed with SHA-256 on the client side.
        "external_id": "<hashed_extenal_id>" // string. Any unique identifier, such as loyalty membership IDs, user IDs, and external cookie IDs.It must be hashed with SHA-256 on the client side.
    });
    
    ttq.track('ViewContent', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('AddToWishlist', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('Search', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>", // string. The 4217 currency code. Example: "USD".
        "query": "<search_keywords>" // string. The word or phrase used to search. Example: "SAVE10COUPON".
    });
    
    ttq.track('AddPaymentInfo', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('AddToCart', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('InitiateCheckout', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('PlaceAnOrder', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('CompleteRegistration', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
    
    ttq.track('CompletePayment', {
        "contents": [
            {
                "content_id": "<content_identifier>", // string. ID of the product. Example: "1077218".
                "content_type": "<content_type>", // string. Either product or product_group.
                "content_name": "<content_name>" // string. The name of the page or product. Example: "shirt".
            }
        ],
        "value": "<content_value>", // number. Value of the order or items sold. Example: 100.
        "currency": "<content_currency>" // string. The 4217 currency code. Example: "USD".
    });
  • 17-02-2024, 14:42:03
    #2
    chatgpt 4ün cevabı :

    Alıntı
    WordPress'te özel JavaScript kodlarını eklemek için birkaç yöntem bulunmaktadır. Sizin durumunuzda, ttq kodunu sitenizin tüm sayfalarına veya belirli sayfalarına eklemek istiyorsanız aşağıdaki yöntemlerden birini kullanabilirsiniz:

    ### 1. Tema Dosyalarını Düzenleme
    Bu yöntem, kodunuzu doğrudan tema dosyalarına eklemenizi sağlar. Genellikle, bu tür kodlar `<head>` etiketi içinde veya `</body>` etiketinden hemen önce yer alır. Ancak, tema dosyalarınızı güncellediğinizde yapılan değişikliklerin kaybolmaması için çocuk tema (child theme) kullanmanız önerilir.

    #### `<head>` İçine Ekleme:
    1. WordPress Yönetici Paneli'ne gidin.
    2. Görünüm > Tema Düzenleyici'yi seçin.
    3. `header.php` dosyasını bulun ve açın.
    4. `<head>` etiketi içine, tercihen diğer `<script>` etiketlerinden önce kodunuzu ekleyin.
    5. Değişiklikleri kaydedin.

    #### Sayfa Sonuna Ekleme:
    1. Aynı şekilde, `footer.php` dosyasını bulun ve açın.
    2. `</body>` etiketinden hemen önce kodunuzu ekleyin.
    3. Değişiklikleri kaydedin.

    ### 2. Eklenti Kullanımı
    WordPress'te JavaScript kodu eklemek için özel eklentiler mevcuttur. Bu eklentiler sayesinde, tema dosyalarını düzenleme ihtiyacı olmadan kodunuzu kolayca ekleyebilirsiniz. Örneğin, "Insert Headers and Footers" veya "WPCode" gibi eklentiler bu iş için uygundur.

    #### Eklenti ile Ekleme:
    1. WordPress Yönetici Paneli'ne gidin.
    2. Eklentiler > Yeni Ekle'ye tıklayın.
    3. "Insert Headers and Footers" veya "WPCode" arayın ve kurun.
    4. Eklentiyi aktive edin ve eklenti ayarlarına gidin.
    5. İlgili alana JavaScript kodunuzu ekleyin (Başlığa Ekle veya Altbilgiye Ekle seçenekleri olabilir).
    6. Değişiklikleri kaydedin.

    ### 3. Fonksiyonlar.php Dosyasını Kullanma
    Çocuk tema kullanıyorsanız, `functions.php` dosyasına özel bir fonksiyon ekleyerek JavaScript kodunuzu sitenize entegre edebilirsiniz. Bu yöntem, kodunuzun tema güncellemelerinden etkilenmemesini sağlar.

    ```php
    function custom_ttq_scripts() {
        ?>
        <script>
            // Buraya ttq kodunuzu ekleyin
        </script>
        <?php
    }
    add_action('wp_head', 'custom_ttq_scripts'); // <head> içine eklemek için
    // veya
    add_action('wp_footer', 'custom_ttq_scripts'); // Sayfa sonuna eklemek için
    ```
    Her üç yöntem de WordPress sitenize özel JavaScript kodlarını eklemenize olanak tanır. Hangi yöntemi kullanacağınız, ihtiyaçlarınıza ve tercihlerinize bağlıdır. Kodu doğrudan tema dosyalarına eklemek yerine bir eklenti kullanmak veya `functions.php` dosyasını düzenlemek daha güvenli ve güncelleme dostu olabilir.
  • 17-02-2024, 14:53:32
    #3
    Misafir adlı üyeden alıntı: mesajı görüntüle
    chatgpt 4ün cevabı :
    Yok hocam bulamadım ya
  • 17-02-2024, 14:54:45
    #4
    Digifox adlı üyeden alıntı: mesajı görüntüle
    Yok hocam bulamadım ya
    anydesk var mı hocam ben çözdüm galiba yardımcı olayım pm den iletin
  • 17-02-2024, 14:55:50
    #5
    Kimlik doğrulama veya yönetimden onay bekliyor.
    alta gel orada bir yer var oraya