# Worked extension examples

These developer-facing recipes are kept beside the package contract. Replace the example values with the site-specific records and data objects used by the calling workflow.

<!-- example: action applyCampaignPageDefaults -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\ApplyCampaignPageDefaultsAction::class)->handle(...$inputs);
```

<!-- example: action buildCampaignConversionFunnel -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildCampaignConversionFunnelAction::class)->handle(...$inputs);
```

<!-- example: action buildCampaignExperimentResults -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildCampaignExperimentResultsAction::class)->handle(...$inputs);
```

<!-- example: action buildCampaignLandingPageVariants -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildCampaignLandingPageVariantsAction::class)->handle(...$inputs);
```

<!-- example: action buildCampaignOverviewStats -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildCampaignOverviewStatsAction::class)->handle(...$inputs);
```

<!-- example: action buildCampaignUrl -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildCampaignUrlAction::class)->handle(...$inputs);
```

<!-- example: action buildConversionAttribution -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildConversionAttributionAction::class)->handle(...$inputs);
```

<!-- example: action buildTopCampaignStudioQuery -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildTopCampaignStudioQueryAction::class)->handle(...$inputs);
```

<!-- example: action buildTopLandingPagesQuery -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\BuildTopLandingPagesQueryAction::class)->handle(...$inputs);
```

<!-- example: action captureCampaignConversion -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\CaptureCampaignConversionAction::class)->handle(...$inputs);
```

<!-- example: action getCampaignStudioTrackerScript -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\GetCampaignStudioTrackerScriptAction::class)->handle(...$inputs);
```

<!-- example: action purgeCampaignConversions -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\PurgeCampaignConversionsAction::class)->handle(...$inputs);
```

<!-- example: action recordCampaignConversion -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\RecordCampaignConversionAction::class)->handle(...$inputs);
```

<!-- example: action recordCampaignOutcome -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\RecordCampaignOutcomeAction::class)->handle(...$inputs);
```

<!-- example: action recordCtaClickConversion -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\RecordCtaClickConversionAction::class)->handle(...$inputs);
```

<!-- example: action recordFormSubmissionConversion -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\RecordFormSubmissionConversionAction::class)->handle(...$inputs);
```

<!-- example: action recordPageViewConversion -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\RecordPageViewConversionAction::class)->handle(...$inputs);
```

<!-- example: action resolveCampaignFromUrl -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\ResolveCampaignFromUrlAction::class)->handle(...$inputs);
```

<!-- example: action resolveCampaignLandingPageFromUrl -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\ResolveCampaignLandingPageFromUrlAction::class)->handle(...$inputs);
```

<!-- example: action resolveCampaignLandingPageVariant -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\ResolveCampaignLandingPageVariantAction::class)->handle(...$inputs);
```

<!-- example: action syncCampaignExperiment -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\SyncCampaignExperimentAction::class)->handle(...$inputs);
```

<!-- example: action syncCampaignStatuses -->

```php
<?php
declare(strict_types=1);
$inputs = []; // Supply the arguments required by the action handle() method.
resolve(\Capell\CampaignStudio\Actions\SyncCampaignStatusesAction::class)->handle(...$inputs);
```