Participial Phrase: "wagging its tail excitedly"
Explanation:
* Participle: "wagging" (present participle of the verb "wag")
* Modifier: "its tail excitedly" (modifies the participle "wagging")
* Function: The phrase acts as an adjective, modifying the noun "dog".
This phrase describes the dog's action while it was running.