Skip to content

mailing_geoip ​

php
array mailing_geoip ( number $limit, number|array $shipmentId [, number|boolean $shipmentIdMax=false] )

Returns geolocation data for opens and clicks in mailing $shipmentId (or an array of mailing IDs). If $shipmentIdMax is provided, collects data for mailings from $shipmentId to $shipmentIdMax.

Example:

php
print_r(mailing_geoip(1, 5))

Result:

Array
(
    [country_name] => Array
        (
            [Poland] => Array
                (
                    [count] => 2
                    [icon] => pl
                )

        )

    [region] => Array
        (
            [Slaskie] => Array
                (
                    [count] => 2
                    [icon] => pl
                )

        )

    [city] => Array
        (
            [Rybnik] => Array
                (
                    [count] => 2
                    [icon] => pl
                )

        )

)